LLVM API Documentation

llvm::ReturnInst Class Reference

#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

virtual ~ReturnInst ()
virtual ReturnInstclone () const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Provide fast operand accessors.
ValuegetReturnValue (unsigned n=0) const
 Convenience accessor.
unsigned getNumSuccessors () const

Static Public Member Functions

static ReturnInstCreate (Value *retVal=0, Instruction *InsertBefore=0)
static ReturnInstCreate (Value *retVal, BasicBlock *InsertAtEnd)
static ReturnInstCreate (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 2029 of file Instructions.h.


Constructor & Destructor Documentation

ReturnInst::~ReturnInst (  )  [virtual]

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

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

Definition at line 2054 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 2946 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 2065 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 2071 of file Instructions.h.

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

Definition at line 2074 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 2075 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 2078 of file Instructions.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.