LLVM API Documentation
#include <Instructions.h>


Public Member Functions | |
| virtual | ~ReturnInst () |
| DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value) | |
| Provide fast operand accessors. | |
| Value * | getReturnValue () const |
| Convenience accessor. Returns null if there is no return value. | |
| 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 Instruction *I) |
| static bool | classof (const Value *V) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
Protected Member Functions | |
| virtual ReturnInst * | clone_impl () const |
ReturnInst - Return a value (possibly void), from a function. Execution does not continue in this function any longer.
Definition at line 2273 of file Instructions.h.
| ReturnInst::~ReturnInst | ( | ) | [virtual] |
Definition at line 658 of file Instructions.cpp.
| static bool llvm::ReturnInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Reimplemented from llvm::TerminatorInst.
Definition at line 2319 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::AArch64ISD::Ret.
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::TerminatorInst.
Definition at line 2322 of file Instructions.h.
| ReturnInst * ReturnInst::clone_impl | ( | ) | const [protected, virtual] |
Implements llvm::TerminatorInst.
Definition at line 3525 of file Instructions.cpp.
References llvm::User::getNumOperands().
| static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, |
| Value * | retVal = 0, |
||
| Instruction * | InsertBefore = 0 |
||
| ) | [inline, static] |
Definition at line 2295 of file Instructions.h.
Referenced by llvm::IRBuilder< true, TargetFolder >::CreateAggregateRet(), llvm::IRBuilder< true, TargetFolder >::CreateRet(), llvm::IRBuilder< true, TargetFolder >::CreateRetVoid(), llvm::JIT::runFunction(), and llvm::UnifyFunctionExitNodes::runOnFunction().
| static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, |
| Value * | retVal, | ||
| BasicBlock * | InsertAtEnd | ||
| ) | [inline, static] |
Definition at line 2299 of file Instructions.h.
| static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, |
| BasicBlock * | InsertAtEnd | ||
| ) | [inline, static] |
Definition at line 2303 of file Instructions.h.
| llvm::ReturnInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS | ( | Value | ) |
Provide fast operand accessors.
| unsigned llvm::ReturnInst::getNumSuccessors | ( | ) | const [inline] |
getNumSuccessors - Return the number of successors that this terminator has.
Reimplemented from llvm::TerminatorInst.
Definition at line 2316 of file Instructions.h.
| Value* llvm::ReturnInst::getReturnValue | ( | ) | const [inline] |
Convenience accessor. Returns null if there is no return value.
Definition at line 2312 of file Instructions.h.
Referenced by llvm::InlineFunction(), SimplifyCondBranchToTwoReturns(), and llvm::Interpreter::visitReturnInst().