LLVM 20.0.0git
|
#include "llvm/IR/Instructions.h"
Public Member Functions | |
CaseHandle (SwitchInst *SI, ptrdiff_t Index) | |
void | setValue (ConstantInt *V) const |
Sets the new value for current case. | |
void | setSuccessor (BasicBlock *S) const |
Sets the new successor for current case. | |
Public Member Functions inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock > | |
ConstantInt * | getCaseValue () const |
Resolves case value for current case. | |
BasicBlock * | getCaseSuccessor () const |
Resolves successor for current case. | |
unsigned | getCaseIndex () const |
Returns number of current case. | |
unsigned | getSuccessorIndex () const |
Returns successor index for current case successor. | |
bool | operator== (const CaseHandleImpl &RHS) const |
Friends | |
class | SwitchInst::CaseIteratorImpl< CaseHandle > |
Additional Inherited Members | |
Protected Types inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock > | |
using | SwitchInstType = SwitchInst |
Protected Member Functions inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock > | |
CaseHandleImpl ()=default | |
CaseHandleImpl (SwitchInst *SI, ptrdiff_t Index) | |
Protected Attributes inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock > | |
SwitchInst * | SI |
ptrdiff_t | Index |
Definition at line 3244 of file Instructions.h.
|
inline |
Definition at line 3249 of file Instructions.h.
|
inline |
Sets the new successor for current case.
Definition at line 3259 of file Instructions.h.
References SI().
Referenced by llvm::SwitchInst::addCase().
|
inline |
Sets the new value for current case.
Definition at line 3252 of file Instructions.h.
References assert(), Index, and SI().
Referenced by llvm::SwitchInst::addCase().
|
friend |
Definition at line 3235 of file Instructions.h.