LLVM
8.0.1
|
A handle to a particular switch case. More...
#include "llvm/IR/Instructions.h"
Public Member Functions | |
ConstantIntT * | getCaseValue () const |
Resolves case value for current case. More... | |
BasicBlockT * | getCaseSuccessor () const |
Resolves successor for current case. More... | |
unsigned | getCaseIndex () const |
Returns number of current case. More... | |
unsigned | getSuccessorIndex () const |
Returns successor index for current case successor. More... | |
bool | operator== (const CaseHandleImpl &RHS) const |
Protected Types | |
using | SwitchInstType = SwitchInstT |
Protected Member Functions | |
CaseHandleImpl ()=default | |
CaseHandleImpl (SwitchInstT *SI, ptrdiff_t Index) | |
Protected Attributes | |
SwitchInstT * | SI |
ptrdiff_t | Index |
Friends | |
class | SwitchInst::CaseIteratorImpl< CaseHandleImpl< SwitchInstT, ConstantIntT, BasicBlockT > > |
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.
Definition at line 3158 of file Instructions.h.
|
protected |
Definition at line 3165 of file Instructions.h.
|
protecteddefault |
|
inlineprotected |
Definition at line 3171 of file Instructions.h.
|
inline |
Returns number of current case.
Definition at line 3190 of file Instructions.h.
Referenced by handleSwitchExpect().
|
inline |
Resolves successor for current case.
Definition at line 3182 of file Instructions.h.
Referenced by llvm::CloneFunction(), and ReplaceUsesOfWith().
|
inline |
Resolves case value for current case.
Definition at line 3175 of file Instructions.h.
Referenced by llvm::SwitchInst::findCaseValue().
|
inline |
Returns successor index for current case successor.
Definition at line 3193 of file Instructions.h.
Referenced by llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable().
|
inline |
Definition at line 3200 of file Instructions.h.
|
friend |
Definition at line 3161 of file Instructions.h.
|
protected |
Definition at line 3168 of file Instructions.h.
Referenced by llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::operator==().
|
protected |
Definition at line 3167 of file Instructions.h.
Referenced by llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::operator==().