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 |
Return the number of successors that this terminator has. | |
Static Public Member Functions | |
static ReturnInst * | Create (LLVMContext &C, Value *retVal=nullptr, Instruction *InsertBefore=nullptr) |
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 | |
ReturnInst * | clone_impl () const override |
ReturnInst - Return a value (possibly void), from a function. Execution does not continue in this function any longer.
Definition at line 2393 of file Instructions.h.
ReturnInst::~ReturnInst | ( | ) | [virtual] |
Definition at line 659 of file Instructions.cpp.
static bool llvm::ReturnInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Reimplemented from llvm::TerminatorInst.
Definition at line 2439 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::MipsISD::Ret.
static bool llvm::ReturnInst::classof | ( | const Value * | V | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:
Reimplemented from llvm::TerminatorInst.
Definition at line 2442 of file Instructions.h.
ReturnInst * ReturnInst::clone_impl | ( | ) | const [override, protected, virtual] |
Implements llvm::TerminatorInst.
Definition at line 3761 of file Instructions.cpp.
References llvm::User::getNumOperands().
static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, |
Value * | retVal = nullptr , |
||
Instruction * | InsertBefore = nullptr |
||
) | [inline, static] |
static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, |
Value * | retVal, | ||
BasicBlock * | InsertAtEnd | ||
) | [inline, static] |
Definition at line 2419 of file Instructions.h.
static ReturnInst* llvm::ReturnInst::Create | ( | LLVMContext & | C, |
BasicBlock * | InsertAtEnd | ||
) | [inline, static] |
Definition at line 2423 of file Instructions.h.
Provide fast operand accessors.
unsigned llvm::ReturnInst::getNumSuccessors | ( | ) | const [inline] |
Return the number of successors that this terminator has.
Reimplemented from llvm::TerminatorInst.
Definition at line 2436 of file Instructions.h.
Value* llvm::ReturnInst::getReturnValue | ( | ) | const [inline] |
Convenience accessor. Returns null if there is no return value.
Definition at line 2432 of file Instructions.h.
Referenced by llvm::BasicBlock::getTerminatingMustTailCall(), llvm::InlineFunction(), isEmptyFunction(), SimplifyCondBranchToTwoReturns(), and llvm::Interpreter::visitReturnInst().