LLVM API Documentation

llvm::Argument Class Reference

LLVM Argument representation. More...

#include <Argument.h>

Inheritance diagram for llvm::Argument:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Argument (const Type *Ty, const std::string &Name="", Function *F=0)
const FunctiongetParent () const
FunctiongetParent ()
ArgumentgetNext ()
const ArgumentgetNext () const
ArgumentgetPrev ()
const ArgumentgetPrev () const
virtual void print (std::ostream &OS) const

Static Public Member Functions

static bool classof (const Argument *)
static bool classof (const Value *V)

Friends

class SymbolTableListTraits< Argument, Function, Function, ilist_traits< Argument > >

Detailed Description

LLVM Argument representation.

A class to represent an incoming formal argument to a Function. An argument is a very simple Value. It is essentially a named (optional) type. When used in the body of a function, it represents the value of the actual argument the function was called with.

Definition at line 30 of file Argument.h.


Constructor & Destructor Documentation

Argument::Argument ( const Type Ty,
const std::string &  Name = "",
Function F = 0 
)

Argument ctor - If Function argument is specified, this argument is inserted at the end of the argument list for the function.

Definition at line 54 of file Function.cpp.

References llvm::LeakDetector::addGarbageObject(), and llvm::Function::getArgumentList().


Member Function Documentation

const Function* llvm::Argument::getParent (  )  const [inline]

Definition at line 46 of file Argument.h.

Referenced by AllCalleesPassInValidPointerForArgument(), and print().

Function* llvm::Argument::getParent (  )  [inline]

Definition at line 47 of file Argument.h.

Argument* llvm::Argument::getNext (  )  [inline]

Definition at line 50 of file Argument.h.

References Next.

const Argument* llvm::Argument::getNext (  )  const [inline]

Definition at line 51 of file Argument.h.

References Next.

Argument* llvm::Argument::getPrev (  )  [inline]

Definition at line 52 of file Argument.h.

References Prev.

const Argument* llvm::Argument::getPrev (  )  const [inline]

Definition at line 53 of file Argument.h.

References Prev.

void Argument::print ( std::ostream &  OS  )  const [virtual]

print - Implement operator<< on Value...

Implements llvm::Value.

Definition at line 1330 of file AsmWriter.cpp.

References getParent(), and llvm::WriteAsOperand().

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

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

Definition at line 60 of file Argument.h.

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

Reimplemented from llvm::Value.

Definition at line 61 of file Argument.h.

References llvm::Value::ArgumentVal, and V.


Friends And Related Function Documentation

friend class SymbolTableListTraits< Argument, Function, Function,ilist_traits< Argument > > [friend]

Definition at line 37 of file Argument.h.


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