LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::Argument Class Reference

#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)
virtual void setName (const std::string &name, SymbolTable *ST=0)
 setName - Specialize setName to handle symbol table majik...
const Function * getParent () const
Function * getParent ()
Argument * getNext ()
const Argument * getNext () const
Argument * getPrev ()
const Argument * getPrev () 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

Definition at line 26 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(), llvm::Function::getArgumentList(), and Parent.


Member Function Documentation

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

Reimplemented from llvm::Value.

Definition at line 60 of file Argument.h.

References llvm::Value::ArgumentVal, and llvm::Value::getValueType().

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

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

Definition at line 59 of file Argument.h.

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

Definition at line 50 of file Argument.h.

References Next().

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

Definition at line 49 of file Argument.h.

References Next().

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

Definition at line 46 of file Argument.h.

References Parent.

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

Definition at line 45 of file Argument.h.

References Parent.

Referenced by AllCalleesPassInValidPointerForArgument(), print(), and setName().

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

Definition at line 52 of file Argument.h.

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

Definition at line 51 of file Argument.h.

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

print - Implement operator<< on Value...

Implements llvm::Value.

Definition at line 1238 of file AsmWriter.cpp.

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

void Argument::setName (  const std::string &  name,
SymbolTable *  ST = 0
)  [virtual]
 

setName - Specialize setName to handle symbol table majik...

Reimplemented from llvm::Value.

Definition at line 67 of file Function.cpp.

References getParent(), llvm::Function::getSymbolTable(), llvm::Value::hasName(), llvm::SymbolTable::insert(), llvm::SymbolTable::remove(), and llvm::Value::setName().


Friends And Related Function Documentation

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

Definition at line 33 of file Argument.h.


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