LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 (SwitchInst *SI, unsigned CaseNum)
 
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
 

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)
 
- Protected Attributes inherited from llvm::SwitchInst::CaseIteratorT< SwitchInst, ConstantInt, BasicBlock >
SwitchInstSI
 
unsigned Index
 

Detailed Description

Definition at line 2574 of file Instructions.h.

Constructor & Destructor Documentation

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

Definition at line 2580 of file Instructions.h.

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

Definition at line 2581 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 2590 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 2584 of file Instructions.h.

References llvm::User::setOperand().

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


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