LLVM API Documentation
#include <Instructions.h>
Public Member Functions | |
| virtual | ~ReturnInst () |
| virtual ReturnInst * | clone (LLVMContext &Context) 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 (LLVMContext &C, Value *retVal=0, Instruction *InsertBefore=0) |
| static ReturnInst * | Create (LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd) |
| static ReturnInst * | Create (LLVMContext &C, 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 1975 of file Instructions.h.
| ReturnInst::~ReturnInst | ( | ) | [virtual] |
Definition at line 551 of file Instructions.cpp.
| static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, | |
| Value * | retVal = 0, |
|||
| Instruction * | InsertBefore = 0 | |||
| ) | [inline, static] |
Definition at line 1995 of file Instructions.h.
Referenced by llvm::IRBuilder< true, llvm::TargetFolder >::CreateAggregateRet(), llvm::IRBuilder< true, llvm::TargetFolder >::CreateRet(), llvm::IRBuilder< true, llvm::TargetFolder >::CreateRetVoid(), llvm::RemoveSuccessor(), llvm::JIT::runFunction(), llvm::UnifyFunctionExitNodes::runOnFunction(), and ThunkGToF().
| static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, | |
| Value * | retVal, | |||
| BasicBlock * | InsertAtEnd | |||
| ) | [inline, static] |
Definition at line 1999 of file Instructions.h.
| static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, | |
| BasicBlock * | InsertAtEnd | |||
| ) | [inline, static] |
Definition at line 2003 of file Instructions.h.
| ReturnInst * ReturnInst::clone | ( | LLVMContext & | Context | ) | 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 3057 of file Instructions.cpp.
References llvm::User::getNumOperands(), and llvm::Value::SubclassOptionalData.
| llvm::ReturnInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS | ( | Value | ) |
Provide fast operand accessors.
Convenience accessor.
Definition at line 2014 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 2020 of file Instructions.h.
| static bool llvm::ReturnInst::classof | ( | const ReturnInst * | ) | [inline, static] |
Definition at line 2023 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 2024 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::MipsISD::Ret.