LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::BranchInst:
Public Member Functions | |
BranchInst (BasicBlock *IfTrue, Instruction *InsertBefore=0) | |
BranchInst (BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, Instruction *InsertBefore=0) | |
BranchInst (BasicBlock *IfTrue, BasicBlock *InsertAtEnd) | |
BranchInst (BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, BasicBlock *InsertAtEnd) | |
virtual BranchInst * | clone () const |
Terminators must implement the methods required by Instruction... | |
bool | isUnconditional () const |
bool | isConditional () const |
Value * | getCondition () const |
void | setCondition (Value *V) |
void | setUnconditionalDest (BasicBlock *Dest) |
virtual const BasicBlock * | getSuccessor (unsigned i) const |
BasicBlock * | getSuccessor (unsigned idx) |
virtual void | setSuccessor (unsigned idx, BasicBlock *NewSucc) |
Set a successor at a given index. | |
virtual unsigned | getNumSuccessors () const |
Static Public Member Functions | |
static bool | classof (const BranchInst *) |
static bool | classof (const Instruction *I) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Definition at line 871 of file Instructions.h.
|
Definition at line 883 of file Instructions.h. |
|
Definition at line 887 of file Instructions.h. |
|
Definition at line 893 of file Instructions.h. |
|
Definition at line 898 of file Instructions.h. |
|
Reimplemented from llvm::TerminatorInst. Definition at line 949 of file Instructions.h. References classof(). |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::TerminatorInst. Definition at line 946 of file Instructions.h. References llvm::ISD::Br, and llvm::Instruction::getOpcode(). |
|
Definition at line 945 of file Instructions.h. Referenced by classof(). |
|
Terminators must implement the methods required by Instruction...
Implements llvm::TerminatorInst. Definition at line 818 of file Instructions.cpp. |
|
Definition at line 909 of file Instructions.h. References isConditional(), and llvm::User::Operands. Referenced by GetIfCondition(), GetValueEqualityComparisonCases(), HoistThenElseCodeToIf(), isBlockSimpleEnough(), llvm::SimplifyCFG(), llvm::SelectionDAGBuilder::visitBr(), and llvm::Interpreter::visitBranchInst(). |
|
Implements llvm::TerminatorInst. Definition at line 942 of file Instructions.h. References isConditional(). Referenced by getSuccessor(), setSuccessor(), and llvm::valueAssignmentToEdges(). |
|
Reimplemented from llvm::TerminatorInst. Definition at line 932 of file Instructions.h. References getSuccessor(). |
|
Additionally, they must provide a method to get at the successors of this terminator instruction. 'idx' may not be >= the number of successors returned by getNumSuccessors()! Implements llvm::TerminatorInst. Definition at line 927 of file Instructions.h. References getNumSuccessors(), and llvm::User::Operands. Referenced by GetIfCondition(), getSuccessor(), GetValueEqualityComparisonCases(), HoistThenElseCodeToIf(), llvm::insertBB(), llvm::SimplifyCFG(), llvm::valueAssignmentToEdges(), llvm::SelectionDAGBuilder::visitBr(), and llvm::Interpreter::visitBranchInst(). |
|
Definition at line 907 of file Instructions.h. References llvm::User::Operands. Referenced by getCondition(), GetIfCondition(), getNumSuccessors(), isBlockSimpleEnough(), setCondition(), and setUnconditionalDest(). |
|
Definition at line 906 of file Instructions.h. References llvm::User::Operands. Referenced by llvm::insertBB(), llvm::SelectionDAGBuilder::visitBr(), and llvm::Interpreter::visitBranchInst(). |
|
Definition at line 914 of file Instructions.h. References isConditional(), and llvm::User::setOperand(). |
|
Set a successor at a given index.
Implements llvm::TerminatorInst. Definition at line 937 of file Instructions.h. References getNumSuccessors(), and llvm::User::Operands. Referenced by llvm::insertBB(). |
|
Definition at line 922 of file Instructions.h. References isConditional(), and llvm::User::Operands. Referenced by llvm::insertBB(). |