LLVM API Documentation
#include <Instructions.h>


Public Member Functions | |
| ~BranchInst () | |
| DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value) | |
| Transparently provide more efficient getOperand methods. | |
| virtual BranchInst * | clone () const |
| bool | isUnconditional () const |
| bool | isConditional () const |
| Value * | getCondition () const |
| void | setCondition (Value *V) |
| void | setUnconditionalDest (BasicBlock *Dest) |
| unsigned | getNumSuccessors () const |
| BasicBlock * | getSuccessor (unsigned i) const |
| void | setSuccessor (unsigned idx, BasicBlock *NewSucc) |
Static Public Member Functions | |
| static BranchInst * | Create (BasicBlock *IfTrue, Instruction *InsertBefore=0) |
| static BranchInst * | Create (BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, Instruction *InsertBefore=0) |
| static BranchInst * | Create (BasicBlock *IfTrue, BasicBlock *InsertAtEnd) |
| static BranchInst * | Create (BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, BasicBlock *InsertAtEnd) |
| 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 2100 of file Instructions.h.
| llvm::BranchInst::~BranchInst | ( | ) | [inline] |
Definition at line 2135 of file Instructions.h.
| static BranchInst* llvm::BranchInst::Create | ( | BasicBlock * | IfTrue, | |
| Instruction * | InsertBefore = 0 | |||
| ) | [inline, static] |
Definition at line 2120 of file Instructions.h.
Referenced by ChangeToCall(), llvm::ConstantFoldTerminator(), llvm::IRBuilder< preserveNames, T >::CreateBr(), llvm::IRBuilder< preserveNames, T >::CreateCondBr(), HandleInlinedInvoke(), llvm::InlineFunction(), LowerPartSelect(), LowerPartSet(), PerformHeapAllocSRoA(), llvm::UnifyFunctionExitNodes::runOnFunction(), llvm::SimplifyCFG(), llvm::BasicBlock::splitBasicBlock(), llvm::SplitBlockPredecessors(), and llvm::SplitCriticalEdge().
| static BranchInst* llvm::BranchInst::Create | ( | BasicBlock * | IfTrue, | |
| BasicBlock * | IfFalse, | |||
| Value * | Cond, | |||
| Instruction * | InsertBefore = 0 | |||
| ) | [inline, static] |
Definition at line 2123 of file Instructions.h.
| static BranchInst* llvm::BranchInst::Create | ( | BasicBlock * | IfTrue, | |
| BasicBlock * | InsertAtEnd | |||
| ) | [inline, static] |
Definition at line 2127 of file Instructions.h.
| static BranchInst* llvm::BranchInst::Create | ( | BasicBlock * | IfTrue, | |
| BasicBlock * | IfFalse, | |||
| Value * | Cond, | |||
| BasicBlock * | InsertAtEnd | |||
| ) | [inline, static] |
Definition at line 2130 of file Instructions.h.
| llvm::BranchInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS | ( | Value | ) |
Transparently provide more efficient getOperand methods.
| BranchInst * BranchInst::clone | ( | ) | const [virtual] |
clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name
Implements llvm::TerminatorInst.
Definition at line 2949 of file Instructions.cpp.
References llvm::User::getNumOperands().
| bool llvm::BranchInst::isUnconditional | ( | ) | const [inline] |
Definition at line 2145 of file Instructions.h.
Referenced by FoldBranchToCommonDest(), llvm::FastISel::SelectOperator(), SplitEdgeNicely(), llvm::UnrollLoop(), and llvm::Interpreter::visitBranchInst().
| bool llvm::BranchInst::isConditional | ( | ) | const [inline] |
Definition at line 2146 of file Instructions.h.
Referenced by AddReachableCodeToWorklist(), llvm::CloneAndPruneFunctionInto(), GetIfCondition(), SimplifyCondBranchToCondBranch(), and SimplifyCondBranchToTwoReturns().
| Value* llvm::BranchInst::getCondition | ( | ) | const [inline] |
Definition at line 2148 of file Instructions.h.
Referenced by AddReachableCodeToWorklist(), llvm::EscapeAnalysis::escapes(), FoldBranchToCommonDest(), FoldCondBranchOnPHI(), GetIfCondition(), GetValueEqualityComparisonCases(), HoistThenElseCodeToIf(), SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), SpeculativelyExecuteBB(), and llvm::Interpreter::visitBranchInst().
| void llvm::BranchInst::setCondition | ( | Value * | V | ) | [inline] |
Definition at line 2153 of file Instructions.h.
Referenced by FoldBranchToCommonDest(), and SimplifyCondBranchToCondBranch().
| void llvm::BranchInst::setUnconditionalDest | ( | BasicBlock * | Dest | ) | [inline] |
| unsigned llvm::BranchInst::getNumSuccessors | ( | ) | const [inline] |
getNumSuccessors - Return the number of successors that this terminator has.
Reimplemented from llvm::TerminatorInst.
Definition at line 2170 of file Instructions.h.
| BasicBlock* llvm::BranchInst::getSuccessor | ( | unsigned | idx | ) | const [inline] |
getSuccessor - Return the specified successor.
Reimplemented from llvm::TerminatorInst.
Definition at line 2172 of file Instructions.h.
Referenced by AddReachableCodeToWorklist(), llvm::CloneAndPruneFunctionInto(), FoldBranchToCommonDest(), FoldCondBranchOnPHI(), GetIfCondition(), GetValueEqualityComparisonCases(), HoistThenElseCodeToIf(), llvm::FastISel::SelectOperator(), llvm::SimplifyCFG(), SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), SpeculativelyExecuteBB(), llvm::UnrollLoop(), and llvm::Interpreter::visitBranchInst().
| void llvm::BranchInst::setSuccessor | ( | unsigned | idx, | |
| BasicBlock * | B | |||
| ) | [inline] |
setSuccessor - Update the specified successor to point at the provided block.
Reimplemented from llvm::TerminatorInst.
Definition at line 2177 of file Instructions.h.
Referenced by FoldBranchToCommonDest(), SimplifyCondBranchToCondBranch(), and llvm::UnrollLoop().
| static bool llvm::BranchInst::classof | ( | const BranchInst * | ) | [inline, static] |
Definition at line 2183 of file Instructions.h.
| static bool llvm::BranchInst::classof | ( | const Instruction * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::TerminatorInst.
Definition at line 2184 of file Instructions.h.
References llvm::Instruction::getOpcode().
| static bool llvm::BranchInst::classof | ( | const Value * | V | ) | [inline, static] |
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.