LLVM 20.0.0git
|
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. | |
BasicBlockT * | 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 |
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 3096 of file Instructions.h.
|
protected |
Definition at line 3103 of file Instructions.h.
|
protecteddefault |
|
inlineprotected |
Definition at line 3109 of file Instructions.h.
|
inline |
Returns number of current case.
Definition at line 3128 of file Instructions.h.
References Index.
Referenced by handleSwitchExpect().
|
inline |
Resolves successor for current case.
Definition at line 3120 of file Instructions.h.
References assert(), and SI().
Referenced by unswitchTrivialSwitch().
|
inline |
Resolves case value for current case.
Definition at line 3113 of file Instructions.h.
References assert(), and SI().
Referenced by llvm::SwitchInst::findCaseValue(), llvm::sandboxir::SwitchInst::findCaseValue(), and unswitchTrivialSwitch().
|
inline |
Returns successor index for current case successor.
Definition at line 3131 of file Instructions.h.
References assert().
Referenced by unswitchTrivialSwitch().
|
inline |
Definition at line 3138 of file Instructions.h.
|
friend |
Definition at line 3383 of file Instructions.h.
|
protected |
Definition at line 3106 of file Instructions.h.
|
protected |
Definition at line 3105 of file Instructions.h.