LLVM API Documentation
#include <InstrTypes.h>
Inheritance diagram for llvm::TerminatorInst:
Public Member Functions | |
virtual Instruction * | clone () const =0 |
Terminators must implement the methods required by Instruction... | |
virtual const BasicBlock * | getSuccessor (unsigned idx) const =0 |
virtual unsigned | getNumSuccessors () const =0 |
virtual void | setSuccessor (unsigned idx, BasicBlock *B)=0 |
Set a successor at a given index. | |
BasicBlock * | getSuccessor (unsigned idx) |
Static Public Member Functions | |
static bool | classof (const TerminatorInst *) |
static bool | classof (const Instruction *I) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Protected Member Functions | |
TerminatorInst (Instruction::TermOps iType, Instruction *InsertBefore=0) | |
TerminatorInst (const Type *Ty, Instruction::TermOps iType, const std::string &Name="", Instruction *InsertBefore=0) | |
TerminatorInst (Instruction::TermOps iType, BasicBlock *InsertAtEnd) | |
TerminatorInst (const Type *Ty, Instruction::TermOps iType, const std::string &Name, BasicBlock *InsertAtEnd) |
Definition at line 30 of file InstrTypes.h.
|
Definition at line 26 of file InstrTypes.cpp. |
|
Definition at line 33 of file InstrTypes.h. |
|
Definition at line 30 of file InstrTypes.cpp. |
|
Definition at line 38 of file InstrTypes.h. |
|
Reimplemented from llvm::Instruction. Reimplemented in llvm::ReturnInst, llvm::BranchInst, llvm::SwitchInst, llvm::InvokeInst, llvm::UnwindInst, and llvm::UnreachableInst. Definition at line 67 of file InstrTypes.h. References classof(). |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::Instruction. Reimplemented in llvm::ReturnInst, llvm::BranchInst, llvm::SwitchInst, llvm::InvokeInst, llvm::UnwindInst, and llvm::UnreachableInst. Definition at line 64 of file InstrTypes.h. References llvm::Instruction::getOpcode(). |
|
Definition at line 63 of file InstrTypes.h. Referenced by classof(). |
|
Terminators must implement the methods required by Instruction...
Implements llvm::Instruction. Implemented in llvm::ReturnInst, llvm::BranchInst, llvm::SwitchInst, llvm::InvokeInst, llvm::UnwindInst, and llvm::UnreachableInst. Referenced by llvm::SimplifyCFG(). |
|
Implemented in llvm::ReturnInst, llvm::BranchInst, llvm::SwitchInst, llvm::InvokeInst, llvm::UnwindInst, and llvm::UnreachableInst. Referenced by llvm::ProfileInfoLoader::getBlockCounts(), llvm::isCriticalEdge(), and llvm::RemoveSuccessor(). |
|
Reimplemented in llvm::BranchInst, llvm::SwitchInst, and llvm::InvokeInst. Definition at line 57 of file InstrTypes.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()! Implemented in llvm::ReturnInst, llvm::BranchInst, llvm::SwitchInst, llvm::InvokeInst, llvm::UnwindInst, and llvm::UnreachableInst. Referenced by llvm::ProfileInfoLoader::getBlockCounts(), getSuccessor(), llvm::isCriticalEdge(), llvm::RemoveSuccessor(), and llvm::SplitCriticalEdge(). |
|
Set a successor at a given index.
Implemented in llvm::ReturnInst, llvm::BranchInst, llvm::SwitchInst, llvm::InvokeInst, llvm::UnwindInst, and llvm::UnreachableInst. Referenced by llvm::SplitCriticalEdge(). |