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 3193 of file Instructions.h.
|
protected |
Definition at line 3200 of file Instructions.h.
|
protecteddefault |
|
inlineprotected |
Definition at line 3206 of file Instructions.h.
|
inline |
Returns number of current case.
Definition at line 3225 of file Instructions.h.
References Index.
Referenced by handleSwitchExpect().
|
inline |
Resolves successor for current case.
Definition at line 3217 of file Instructions.h.
References assert(), Index, and SI().
Referenced by unswitchTrivialSwitch().
|
inline |
Resolves case value for current case.
Definition at line 3210 of file Instructions.h.
References assert(), Index, and SI().
Referenced by llvm::SwitchInst::findCaseValue(), llvm::sandboxir::SwitchInst::findCaseValue(), and unswitchTrivialSwitch().
|
inline |
Returns successor index for current case successor.
Definition at line 3228 of file Instructions.h.
References assert(), and Index.
Referenced by unswitchTrivialSwitch().
|
inline |
|
friend |
Definition at line 3480 of file Instructions.h.
|
protected |
Definition at line 3203 of file Instructions.h.
|
protected |
Definition at line 3202 of file Instructions.h.