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

#include <Instructions.h>

Inheritance diagram for llvm::SwitchInst::CaseIt:
[legend]
Collaboration diagram for llvm::SwitchInst::CaseIt:
[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 (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...
 
Self operator++ ()
 
Self operator++ (int)
 
Self operator-- ()
 
Self operator-- (int)
 
bool operator== (const Self &RHS) const
 
bool operator!= (const Self &RHS) const
 
Selfoperator* ()
 

Additional Inherited Members

- Public Types inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
typedef CaseIteratorT
< SwitchInst, ConstantInt,
BasicBlock
Self
 
- 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 Attributes inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
SwitchInstSI
 
unsigned Index
 

Detailed Description

Definition at line 2910 of file Instructions.h.

Constructor & Destructor Documentation

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

Definition at line 2916 of file Instructions.h.

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

Definition at line 2917 of file Instructions.h.

Member Function Documentation

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

Sets the new successor for current case.

Definition at line 2926 of file Instructions.h.

References llvm::SwitchInst::setSuccessor().

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

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

Sets the new value for current case.

Definition at line 2920 of file Instructions.h.

References llvm::User::setOperand().

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


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