class SwitchInst::CaseHandleImpl
Declaration
template <typename SwitchInstT,
typename ConstantIntT,
typename BasicBlockT>
class SwitchInst::CaseHandleImpl { /* full declaration omitted */ };
Description
A handle to a particular switch case. It exposes a convenient interface to both the case value and the successor block. We define this as a template and instantiate it to form both a const and non-const handle.
Declared at: llvm/include/llvm/IR/Instructions.h:3174
Templates
- SwitchInstT
- ConstantIntT
- BasicBlockT
Member Variables
- protected SwitchInstT* SI
- protected ptrdiff_t Index
Method Overview
- protected CaseHandleImpl<SwitchInstT, ConstantIntT, BasicBlockT>()
- protected CaseHandleImpl<SwitchInstT, ConstantIntT, BasicBlockT>(SwitchInstT * SI, ptrdiff_t Index)
- public unsigned int getCaseIndex() const
- public BasicBlockT * getCaseSuccessor() const
- public ConstantIntT * getCaseValue() const
- public unsigned int getSuccessorIndex() const
Methods
¶CaseHandleImpl<SwitchInstT,
ConstantIntT,
BasicBlockT>()
CaseHandleImpl<SwitchInstT,
ConstantIntT,
BasicBlockT>()
Declared at: llvm/include/llvm/IR/Instructions.h:3186
¶CaseHandleImpl<SwitchInstT,
ConstantIntT,
BasicBlockT>(SwitchInstT* SI,
ptrdiff_t Index)
CaseHandleImpl<SwitchInstT,
ConstantIntT,
BasicBlockT>(SwitchInstT* SI,
ptrdiff_t Index)
Declared at: llvm/include/llvm/IR/Instructions.h:3187
Parameters
- SwitchInstT* SI
- ptrdiff_t Index
¶unsigned int getCaseIndex() const
unsigned int getCaseIndex() const
Description
Returns number of current case.
Declared at: llvm/include/llvm/IR/Instructions.h:3206
¶BasicBlockT* getCaseSuccessor() const
BasicBlockT* getCaseSuccessor() const
Description
Resolves successor for current case.
Declared at: llvm/include/llvm/IR/Instructions.h:3198
¶ConstantIntT* getCaseValue() const
ConstantIntT* getCaseValue() const
Description
Resolves case value for current case.
Declared at: llvm/include/llvm/IR/Instructions.h:3191
¶unsigned int getSuccessorIndex() const
unsigned int getSuccessorIndex() const
Description
Returns successor index for current case successor.
Declared at: llvm/include/llvm/IR/Instructions.h:3209