LLVM  5.0.0svn
Public Member Functions | List of all members
llvm::SwitchInst::CaseIt Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::SwitchInst::CaseIt:
Inheritance graph
[legend]
Collaboration diagram for llvm::SwitchInst::CaseIt:
Collaboration graph
[legend]

Public Member Functions

 CaseIt (const ParentTy &Src)
 
 CaseIt (SwitchInst *SI, unsigned CaseNum)
 
void setValue (ConstantInt *V)
 Sets the new value for current case. More...
 
void setSuccessor (BasicBlock *S)
 Sets the new successor for current case. More...
 
- Public Member Functions inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
 CaseIteratorT ()
 Default constructed iterator is in an invalid state until assigned to a case for a particular switch. More...
 
 CaseIteratorT (SwitchInst *SI, unsigned CaseNum)
 Initializes case iterator for given SwitchInst and for given case number. More...
 
ConstantIntgetCaseValue ()
 Resolves case value for current case. More...
 
BasicBlockgetCaseSuccessor ()
 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...
 
Selfoperator+= (ptrdiff_t N)
 
Selfoperator-= (ptrdiff_t N)
 
bool operator== (const Self &RHS) const
 
bool operator< (const Self &RHS) const
 
Selfoperator* ()
 
const Selfoperator* () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >, std::random_access_iterator_tag, CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > >
CaseIteratorT< SwitchInst, ConstantInt, BasicBlockoperator+ (std::ptrdiff_t n) const
 
CaseIteratorT< SwitchInst, ConstantInt, BasicBlockoperator- (std::ptrdiff_t n) const
 
CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > & operator++ ()
 
CaseIteratorT< SwitchInst, ConstantInt, BasicBlockoperator++ (int)
 
CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > & operator-- ()
 
CaseIteratorT< SwitchInst, ConstantInt, BasicBlockoperator-- (int)
 
bool operator!= (const CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > &RHS) const
 
bool operator> (const CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > &RHS) const
 
bool operator<= (const CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > &RHS) const
 
bool operator>= (const CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > &RHS) const
 
CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > * operator-> () const
 
ReferenceProxy operator[] (std::ptrdiff_t n) const
 

Additional Inherited Members

- Public Types inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
typedef CaseIteratorT< SwitchInst, ConstantInt, BasicBlockSelf
 
- Static Public Member Functions inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
static Self fromSuccessorIndex (SwitchInst *SI, unsigned SuccessorIndex)
 Initializes case iterator for given SwitchInst and for given TerminatorInst's successor index. More...
 
- Protected Types inherited from llvm::iterator_facade_base< CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >, std::random_access_iterator_tag, CaseIteratorT< SwitchInst, ConstantInt, BasicBlock > >
enum  
 
- Protected Attributes inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
SwitchInstSI
 
ptrdiff_t Index
 

Detailed Description

Definition at line 3190 of file Instructions.h.

Constructor & Destructor Documentation

◆ CaseIt() [1/2]

llvm::SwitchInst::CaseIt::CaseIt ( const ParentTy Src)
inline

Definition at line 3194 of file Instructions.h.

◆ CaseIt() [2/2]

llvm::SwitchInst::CaseIt::CaseIt ( SwitchInst SI,
unsigned  CaseNum 
)
inline

Definition at line 3195 of file Instructions.h.

Member Function Documentation

◆ setSuccessor()

void llvm::SwitchInst::CaseIt::setSuccessor ( BasicBlock S)
inline

Sets the new successor for current case.

Definition at line 3205 of file Instructions.h.

References llvm::SwitchInst::setSuccessor().

Referenced by llvm::SwitchInst::addCase().

◆ setValue()

void llvm::SwitchInst::CaseIt::setValue ( ConstantInt V)
inline

Sets the new value for current case.

Definition at line 3198 of file Instructions.h.

References assert(), and llvm::User::setOperand().

Referenced by llvm::SwitchInst::addCase().


The documentation for this class was generated from the following file: