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

 ReturnInst (Value *retVal=0, Instruction *InsertBefore=0)
 ReturnInst (Value *retVal, BasicBlock *InsertAtEnd)
 ReturnInst (BasicBlock *InsertAtEnd)
virtual ReturnInstclone () const
ValuegetOperand (unsigned i) const
void setOperand (unsigned i, Value *Val)
ValuegetReturnValue () const
unsigned getNumSuccessors () const

Static Public Member Functions

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 1011 of file Instructions.h.


Constructor & Destructor Documentation

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

Definition at line 1033 of file Instructions.h.

References llvm::cl::init().

llvm::ReturnInst::ReturnInst ( Value retVal,
BasicBlock InsertAtEnd 
) [inline]

Definition at line 1037 of file Instructions.h.

References llvm::cl::init().

llvm::ReturnInst::ReturnInst ( BasicBlock InsertAtEnd  )  [inline]

Definition at line 1041 of file Instructions.h.


Member Function Documentation

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1066 of file Instructions.h.

References llvm::CastInst::classof(), and V.

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

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::TerminatorInst.

Definition at line 1063 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Definition at line 1062 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 1290 of file Instructions.cpp.

unsigned llvm::ReturnInst::getNumSuccessors (  )  const [inline]

getNumSuccessors - Return the number of successors that this terminator has.

Reimplemented from llvm::TerminatorInst.

Definition at line 1059 of file Instructions.h.

Value* llvm::ReturnInst::getOperand ( unsigned  i  )  const [inline]

Reimplemented from llvm::User.

Definition at line 1048 of file Instructions.h.

References llvm::UnaryInstruction::getNumOperands().

Referenced by llvm::SelectionDAGLowering::visitUserOp2().

Value* llvm::ReturnInst::getReturnValue (  )  const [inline]

Definition at line 1057 of file Instructions.h.

Referenced by InsertCodeToShowFunctionExit(), llvm::SparcV9RegInfo::suggestReg4RetValue(), and llvm::Interpreter::visitReturnInst().

void llvm::ReturnInst::setOperand ( unsigned  i,
Value Val 
) [inline]

Reimplemented from llvm::User.

Definition at line 1052 of file Instructions.h.

References llvm::UnaryInstruction::getNumOperands(), and Val.


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