LLVM API Documentation

llvm::ReturnInst Class Reference

#include <Instructions.h>

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

List of all members.

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)


Detailed Description

ReturnInst - Return a value (possibly void), from a function. Execution does not continue in this function any longer.

Definition at line 2044 of file Instructions.h.


Constructor & Destructor Documentation

ReturnInst::~ReturnInst (  )  [virtual]

Definition at line 546 of file Instructions.cpp.


Member Function Documentation

static ReturnInst* llvm::ReturnInst::Create ( Value *  retVal = 0,
Instruction *  InsertBefore = 0 
) [inline, static]

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.

Value* llvm::ReturnInst::getReturnValue ( unsigned  n = 0  )  const [inline]

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]

Reimplemented from llvm::TerminatorInst.

Definition at line 2093 of file Instructions.h.


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