LLVM: llvm::SwitchInst::CaseHandle Class Reference (original) (raw)

#include "[llvm/IR/Instructions.h](Instructions%5F8h%5Fsource.html)"

Inheritance diagram for llvm::SwitchInst::CaseHandle:

[legend]

Public Member Functions
CaseHandle (SwitchInst *SI, ptrdiff_t Index)
void setValue (ConstantInt *V) const
Sets the new value for current case.
void setSuccessor (BasicBlock *S) const
Sets the new successor for current case.
Public Member Functions inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >
ConstantInt * getCaseValue () const
Resolves case value for current case.
BasicBlock * 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
Friends
class SwitchInst::CaseIteratorImpl< CaseHandle >
Additional Inherited Members
Protected Types inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >
using SwitchInstType
Protected Member Functions inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >
CaseHandleImpl ()=default
Protected Attributes inherited from llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >
SwitchInst * SI
ptrdiff_t Index

Detailed Description

Definition at line 3291 of file Instructions.h.

Constructor & Destructor Documentation

llvm::SwitchInst::CaseHandle::CaseHandle ( SwitchInst * SI, ptrdiff_t Index ) inline

Definition at line 3296 of file Instructions.h.

References llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::CaseHandleImpl(), llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::Index, and llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::SI.

Member Function Documentation

setSuccessor()

void llvm::SwitchInst::CaseHandle::setSuccessor ( BasicBlock * S) const inline

Sets the new successor for current case.

Definition at line 3306 of file Instructions.h.

References llvm::Instruction::BasicBlock, llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::getSuccessorIndex(), and llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::SI.

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

setValue()

void llvm::SwitchInst::CaseHandle::setValue ( ConstantInt * V) const inline

Sets the new value for current case.

Definition at line 3299 of file Instructions.h.

References assert(), llvm::SwitchInst::getNumCases(), llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::Index, and llvm::SwitchInst::CaseHandleImpl< SwitchInst, ConstantInt, BasicBlock >::SI.

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

SwitchInst::CaseIteratorImpl< CaseHandle >

friend class SwitchInst::CaseIteratorImpl< CaseHandle > friend

Definition at line 3282 of file Instructions.h.


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