LLVM API Documentation
#include <Instructions.h>
Public Member Functions | |
| virtual | ~ReturnInst () |
| virtual ReturnInst * | clone () const |
| DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value) | |
| Provide fast operand accessors. | |
| Value * | getReturnValue (unsigned n=0) const |
| Convenience accessor. | |
| unsigned | getNumSuccessors () const |
Static Public Member Functions | |
| static ReturnInst * | Create (Value *retVal=0, Instruction *InsertBefore=0) |
| static ReturnInst * | Create (Value *retVal, BasicBlock *InsertAtEnd) |
| static ReturnInst * | Create (BasicBlock *InsertAtEnd) |
| static bool | classof (const ReturnInst *) |
| 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 2044 of file Instructions.h.
| ReturnInst::~ReturnInst | ( | ) | [virtual] |
Definition at line 546 of file Instructions.cpp.
| static ReturnInst* llvm::ReturnInst::Create | ( | Value * | retVal = 0, |
|
| Instruction * | InsertBefore = 0 | |||
| ) | [inline, static] |
Definition at line 2063 of file Instructions.h.
Referenced by llvm::IRBuilder< preserveNames, T >::CreateAggregateRet(), llvm::IRBuilder< preserveNames, T >::CreateRet(), llvm::IRBuilder< preserveNames, T >::CreateRetVoid(), LowerPartSelect(), LowerPartSet(), llvm::RemoveSuccessor(), llvm::JIT::runFunction(), and llvm::UnifyFunctionExitNodes::runOnFunction().
| static ReturnInst* llvm::ReturnInst::Create | ( | Value * | retVal, | |
| BasicBlock * | InsertAtEnd | |||
| ) | [inline, static] |
Definition at line 2066 of file Instructions.h.
| static ReturnInst* llvm::ReturnInst::Create | ( | BasicBlock * | InsertAtEnd | ) | [inline, static] |
Definition at line 2069 of file Instructions.h.
| ReturnInst * ReturnInst::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 2920 of file Instructions.cpp.
References llvm::User::getNumOperands().
| llvm::ReturnInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS | ( | Value | ) |
Provide fast operand accessors.
Convenience accessor.
Definition at line 2080 of file Instructions.h.
Referenced by llvm::InlineFunction(), SimplifyCondBranchToTwoReturns(), and llvm::Interpreter::visitReturnInst().
| unsigned llvm::ReturnInst::getNumSuccessors | ( | ) | const [inline] |
getNumSuccessors - Return the number of successors that this terminator has.
Reimplemented from llvm::TerminatorInst.
Definition at line 2086 of file Instructions.h.
| static bool llvm::ReturnInst::classof | ( | const ReturnInst * | ) | [inline, static] |
Definition at line 2089 of file Instructions.h.
| static bool llvm::ReturnInst::classof | ( | const Instruction * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::TerminatorInst.
Definition at line 2090 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::MipsISD::Ret.
| static bool llvm::ReturnInst::classof | ( | const Value * | V | ) | [inline, static] |