LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::CallSite Class Reference

#include <CallSite.h>

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

Public Member Functions

 CallSite ()
 
 CallSite (Base B)
 
 CallSite (Value *V)
 
 CallSite (CallInst *CI)
 
 CallSite (InvokeInst *II)
 
 CallSite (Instruction *II)
 
bool operator== (const CallSite &CS) const
 
bool operator!= (const CallSite &CS) const
 
bool operator< (const CallSite &CS) const
 
- Public Member Functions inherited from llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >
 CallSiteBase ()
 
 CallSiteBase (CallInst *CI)
 
 CallSiteBase (InvokeInst *II)
 
 CallSiteBase (Value *II)
 
bool isCall () const
 
bool isInvoke () const
 
InstructiongetInstruction () const
 
Instructionoperator-> () const
 
LLVM_EXPLICIT operator bool () const
 
ValuegetCalledValue () const
 
FunctiongetCalledFunction () const
 
void setCalledFunction (Value *V)
 
bool isCallee (value_use_iterator< User > UI) const
 
ValuegetArgument (unsigned ArgNo) const
 
void setArgument (unsigned ArgNo, Value *newVal)
 
unsigned getArgumentNo (value_use_iterator< User > I) const
 
User::op_iterator arg_begin () const
 
User::op_iterator arg_end () const
 
bool arg_empty () const
 
unsigned arg_size () const
 
TypegetType () const
 
FunctiongetCaller () const
 
CallingConv::ID getCallingConv () const
 
void setCallingConv (CallingConv::ID CC)
 
const AttributeSetgetAttributes () const
 
void setAttributes (const AttributeSet &PAL)
 
bool hasFnAttr (Attribute::AttrKind A) const
 Return true if this function has the given attribute. More...
 
bool paramHasAttr (unsigned i, Attribute::AttrKind A) const
 Return true if the call or the callee has the given attribute. More...
 
uint16_t getParamAlignment (uint16_t i) const
 Extract the alignment for a call or parameter (0=unknown). More...
 
bool isNoBuiltin () const
 Return true if the call should not be treated as a call to a builtin. More...
 
bool isNoInline () const
 Return true if the call should not be inlined. More...
 
void setIsNoInline (bool Value=true)
 
bool doesNotAccessMemory () const
 Determine if the call does not access memory. More...
 
bool doesNotAccessMemory (unsigned ArgNo) const
 
void setDoesNotAccessMemory ()
 
bool onlyReadsMemory () const
 Determine if the call does not access or only reads memory. More...
 
bool onlyReadsMemory (unsigned ArgNo) const
 
void setOnlyReadsMemory ()
 
bool doesNotReturn () const
 Determine if the call cannot return. More...
 
void setDoesNotReturn ()
 
bool doesNotThrow () const
 Determine if the call cannot unwind. More...
 
void setDoesNotThrow ()
 
bool doesNotCapture (unsigned ArgNo) const
 Determine whether this argument is not captured. More...
 
bool isByValArgument (unsigned ArgNo) const
 Determine whether this argument is passed by value. More...
 
bool hasArgument (const Value *Arg) const
 

Additional Inherited Members

- Public Types inherited from llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >
typedef User::op_iterator arg_iterator
 
- Static Protected Member Functions inherited from llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >
static CallSiteBase get (Value *V)
 
- Protected Attributes inherited from llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >
PointerIntPair< Instruction
*, 1, bool
I
 

Detailed Description

Definition at line 295 of file CallSite.h.

Constructor & Destructor Documentation

llvm::CallSite::CallSite ( )
inline

Definition at line 300 of file CallSite.h.

llvm::CallSite::CallSite ( Base  B)
inline

Definition at line 301 of file CallSite.h.

llvm::CallSite::CallSite ( Value V)
inline

Definition at line 302 of file CallSite.h.

llvm::CallSite::CallSite ( CallInst CI)
inline

Definition at line 303 of file CallSite.h.

llvm::CallSite::CallSite ( InvokeInst II)
inline

Definition at line 304 of file CallSite.h.

llvm::CallSite::CallSite ( Instruction II)
inline

Definition at line 305 of file CallSite.h.

Member Function Documentation

bool llvm::CallSite::operator!= ( const CallSite CS) const
inline
bool llvm::CallSite::operator< ( const CallSite CS) const
inline
bool llvm::CallSite::operator== ( const CallSite CS) const
inline

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