LLVM API Documentation
#include <Instructions.h>


Public Member Functions | |
| ~IndirectBrInst () | |
| DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value) | |
| Provide fast operand accessors. | |
| Value * | getAddress () |
| const Value * | getAddress () const |
| void | setAddress (Value *V) |
| unsigned | getNumDestinations () const |
| BasicBlock * | getDestination (unsigned i) |
| getDestination - Return the specified destination. | |
| const BasicBlock * | getDestination (unsigned i) const |
| void | addDestination (BasicBlock *Dest) |
| void | removeDestination (unsigned i) |
| unsigned | getNumSuccessors () const |
| BasicBlock * | getSuccessor (unsigned i) const |
| void | setSuccessor (unsigned i, BasicBlock *NewSucc) |
Static Public Member Functions | |
| static IndirectBrInst * | Create (Value *Address, unsigned NumDests, Instruction *InsertBefore=0) |
| static IndirectBrInst * | Create (Value *Address, unsigned NumDests, BasicBlock *InsertAtEnd) |
| static bool | classof (const Instruction *I) |
| static bool | classof (const Value *V) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
Protected Member Functions | |
| virtual IndirectBrInst * | clone_impl () const |
IndirectBrInst - Indirect Branch Instruction.
Definition at line 2854 of file Instructions.h.
| IndirectBrInst::~IndirectBrInst | ( | ) |
Definition at line 3335 of file Instructions.cpp.
References llvm::User::dropHungoffUses().
| void IndirectBrInst::addDestination | ( | BasicBlock * | DestBB | ) |
addDestination - Add a destination.
Definition at line 3341 of file Instructions.cpp.
References llvm::User::NumOperands.
| static bool llvm::IndirectBrInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Reimplemented from llvm::TerminatorInst.
Definition at line 2926 of file Instructions.h.
References llvm::Instruction::getOpcode().
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::TerminatorInst.
Definition at line 2929 of file Instructions.h.
| IndirectBrInst * IndirectBrInst::clone_impl | ( | ) | const [protected, virtual] |
Implements llvm::TerminatorInst.
Definition at line 3537 of file Instructions.cpp.
| static IndirectBrInst* llvm::IndirectBrInst::Create | ( | Value * | Address, |
| unsigned | NumDests, | ||
| Instruction * | InsertBefore = 0 |
||
| ) | [inline, static] |
Definition at line 2882 of file Instructions.h.
Referenced by llvm::IRBuilder< true, TargetFolder >::CreateIndirectBr().
| static IndirectBrInst* llvm::IndirectBrInst::Create | ( | Value * | Address, |
| unsigned | NumDests, | ||
| BasicBlock * | InsertAtEnd | ||
| ) | [inline, static] |
Definition at line 2886 of file Instructions.h.
| llvm::IndirectBrInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS | ( | Value | ) |
Provide fast operand accessors.
| Value* llvm::IndirectBrInst::getAddress | ( | ) | [inline] |
Definition at line 2896 of file Instructions.h.
Referenced by llvm::Interpreter::visitIndirectBrInst().
| const Value* llvm::IndirectBrInst::getAddress | ( | ) | const [inline] |
Definition at line 2897 of file Instructions.h.
| BasicBlock* llvm::IndirectBrInst::getDestination | ( | unsigned | i | ) | [inline] |
getDestination - Return the specified destination.
Definition at line 2906 of file Instructions.h.
| const BasicBlock* llvm::IndirectBrInst::getDestination | ( | unsigned | i | ) | const [inline] |
Definition at line 2907 of file Instructions.h.
| unsigned llvm::IndirectBrInst::getNumDestinations | ( | ) | const [inline] |
getNumDestinations - return the number of possible destinations in this indirectbr instruction.
Definition at line 2903 of file Instructions.h.
| unsigned llvm::IndirectBrInst::getNumSuccessors | ( | ) | const [inline] |
getNumSuccessors - Return the number of successors that this terminator has.
Reimplemented from llvm::TerminatorInst.
Definition at line 2917 of file Instructions.h.
| BasicBlock* llvm::IndirectBrInst::getSuccessor | ( | unsigned | idx | ) | const [inline] |
getSuccessor - Return the specified successor.
Reimplemented from llvm::TerminatorInst.
Definition at line 2918 of file Instructions.h.
| void IndirectBrInst::removeDestination | ( | unsigned | idx | ) |
removeDestination - This method removes the specified successor from the indirectbr instruction.
Definition at line 3353 of file Instructions.cpp.
References llvm::User::getNumOperands(), llvm::User::OperandList, and llvm::Use::set().
| void llvm::IndirectBrInst::setAddress | ( | Value * | V | ) | [inline] |
Definition at line 2898 of file Instructions.h.
| void llvm::IndirectBrInst::setSuccessor | ( | unsigned | idx, |
| BasicBlock * | B | ||
| ) | [inline] |
setSuccessor - Update the specified successor to point at the provided block.
Reimplemented from llvm::TerminatorInst.
Definition at line 2921 of file Instructions.h.