LLVM API Documentation
#include <Instructions.h>
Public Types | |
typedef CaseIteratorT < SwitchInstTy, ConstantIntTy, BasicBlockTy > | Self |
Public Member Functions | |
CaseIteratorT (SwitchInstTy *SI, unsigned CaseNum) | |
ConstantIntTy * | getCaseValue () |
Resolves case value for current case. More... | |
BasicBlockTy * | getCaseSuccessor () |
Resolves successor for current case. More... | |
unsigned | getCaseIndex () const |
Returns number of current case. More... | |
unsigned | getSuccessorIndex () const |
Returns TerminatorInst's successor index for current case successor. More... | |
Self | operator++ () |
Self | operator++ (int) |
Self | operator-- () |
Self | operator-- (int) |
bool | operator== (const Self &RHS) const |
bool | operator!= (const Self &RHS) const |
Static Public Member Functions | |
static Self | fromSuccessorIndex (SwitchInstTy *SI, unsigned SuccessorIndex) |
Protected Attributes | |
SwitchInstTy * | SI |
unsigned | Index |
Definition at line 2484 of file Instructions.h.
typedef CaseIteratorT<SwitchInstTy, ConstantIntTy, BasicBlockTy> llvm::SwitchInst::CaseIteratorT< SwitchInstTy, ConstantIntTy, BasicBlockTy >::Self |
Definition at line 2492 of file Instructions.h.
|
inline |
Initializes case iterator for given SwitchInst and for given case number.
Definition at line 2496 of file Instructions.h.
|
inlinestatic |
Initializes case iterator for given SwitchInst and for given TerminatorInst's successor index.
Definition at line 2503 of file Instructions.h.
Referenced by llvm::DOTGraphTraits< const Function * >::getEdgeSourceLabel().
|
inline |
Returns number of current case.
Definition at line 2526 of file Instructions.h.
Referenced by EliminateDeadSwitchCases(), and llvm::SwitchInst::removeCase().
|
inline |
Resolves successor for current case.
Definition at line 2518 of file Instructions.h.
Referenced by llvm::ConstantFoldTerminator(), EliminateDeadSwitchCases(), SimplifySwitchOnSelect(), and TurnSwitchRangeIntoICmp().
|
inline |
Resolves case value for current case.
Definition at line 2512 of file Instructions.h.
Referenced by llvm::ConstantFoldTerminator(), llvm::DOTGraphTraits< const Function * >::getEdgeSourceLabel(), and TurnSwitchRangeIntoICmp().
|
inline |
Returns TerminatorInst's successor index for current case successor.
Definition at line 2529 of file Instructions.h.
|
inline |
Definition at line 2565 of file Instructions.h.
|
inline |
Definition at line 2535 of file Instructions.h.
|
inline |
Definition at line 2542 of file Instructions.h.
|
inline |
Definition at line 2547 of file Instructions.h.
|
inline |
Definition at line 2556 of file Instructions.h.
|
inline |
Definition at line 2561 of file Instructions.h.
|
protected |
Definition at line 2488 of file Instructions.h.
Referenced by llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >::operator!=(), and llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >::operator==().
|
protected |
Definition at line 2487 of file Instructions.h.
Referenced by llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >::operator!=(), and llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >::operator==().