LLVM  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
llvm::ReturnInst Class Reference

ReturnInst - Return a value (possibly void), from a function. More...

#include <Instructions.h>

Inheritance diagram for llvm::ReturnInst:
Inheritance graph
[legend]
Collaboration diagram for llvm::ReturnInst:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~ReturnInst () override
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Provide fast operand accessors.
ValuegetReturnValue () 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 ReturnInstCreate (LLVMContext &C, Value *retVal=nullptr, Instruction *InsertBefore=nullptr)
static ReturnInstCreate (LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd)
static ReturnInstCreate (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

ReturnInstcloneImpl () const
 Create a copy of this instruction.

Friends

class Instruction

Detailed Description

ReturnInst - Return a value (possibly void), from a function.

Execution does not continue in this function any longer.

Definition at line 2744 of file Instructions.h.


Constructor & Destructor Documentation

ReturnInst::~ReturnInst ( ) [override]

Definition at line 719 of file Instructions.cpp.


Member Function Documentation

static bool llvm::ReturnInst::classof ( const Instruction I) [inline, static]

Reimplemented from llvm::TerminatorInst.

Definition at line 2794 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 2797 of file Instructions.h.

ReturnInst * ReturnInst::cloneImpl ( ) const [protected]

Create a copy of this instruction.

Reimplemented from llvm::Instruction.

Definition at line 3936 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 2774 of file Instructions.h.

static ReturnInst* llvm::ReturnInst::Create ( LLVMContext C,
BasicBlock InsertAtEnd 
) [inline, static]

Definition at line 2778 of file Instructions.h.

Provide fast operand accessors.

Return the number of successors that this terminator has.

Reimplemented from llvm::TerminatorInst.

Definition at line 2791 of file Instructions.h.

Convenience accessor. Returns null if there is no return value.

Definition at line 2787 of file Instructions.h.

Referenced by llvm::BasicBlock::getTerminatingMustTailCall(), llvm::InlineFunction(), isEmptyFunction(), SimplifyCondBranchToTwoReturns(), and llvm::Interpreter::visitReturnInst().


Friends And Related Function Documentation

friend class Instruction [friend]

Definition at line 2766 of file Instructions.h.


The documentation for this class was generated from the following files: