LLVM API Documentation
#include <Argument.h>
Inheritance diagram for llvm::Argument:
Public Member Functions | |
Argument (const Type *Ty, const std::string &Name="", Function *F=0) | |
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 > > |
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.
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().
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] |
const Argument* llvm::Argument::getNext | ( | ) | const [inline] |
Argument* llvm::Argument::getPrev | ( | ) | [inline] |
const Argument* llvm::Argument::getPrev | ( | ) | const [inline] |
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.
friend class SymbolTableListTraits< Argument, Function, Function,ilist_traits< Argument > > [friend] |
Definition at line 37 of file Argument.h.