LLVM API Documentation

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

ImmutableCallSite - establish a view to a call site for examination. More...

#include <CallSite.h>

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

Public Member Functions

 ImmutableCallSite (const Value *V)
 
 ImmutableCallSite (const CallInst *CI)
 
 ImmutableCallSite (const InvokeInst *II)
 
 ImmutableCallSite (const Instruction *II)
 
 ImmutableCallSite (CallSite CS)
 
- Public Member Functions inherited from llvm::CallSiteBase<>
 CallSiteBase ()
 
 CallSiteBase (const CallInst *CI)
 
 CallSiteBase (const InvokeInst *II)
 
 CallSiteBase (const Value *II)
 
bool isCall () const
 
bool isInvoke () const
 
const InstructiongetInstruction () const
 
const Instructionoperator-> () const
 
LLVM_EXPLICIT operator bool () const
 
const ValuegetCalledValue () const
 
const FunctiongetCalledFunction () const
 
void setCalledFunction (Value *V)
 
bool isCallee (value_use_iterator< const User > UI) const
 
const ValuegetArgument (unsigned ArgNo) const
 
void setArgument (unsigned ArgNo, Value *newVal)
 
unsigned getArgumentNo (value_use_iterator< const User > I) const
 
User::const_op_iterator arg_begin () const
 
User::const_op_iterator arg_end () const
 
bool arg_empty () const
 
unsigned arg_size () const
 
TypegetType () const
 
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<>
typedef User::const_op_iterator arg_iterator
 
- Static Protected Member Functions inherited from llvm::CallSiteBase<>
static CallSiteBase get (const Value *V)
 
- Protected Attributes inherited from llvm::CallSiteBase<>
PointerIntPair< const
Instruction *, 1, bool
I
 

Detailed Description

ImmutableCallSite - establish a view to a call site for examination.

Definition at line 318 of file CallSite.h.

Constructor & Destructor Documentation

llvm::ImmutableCallSite::ImmutableCallSite ( const Value V)
inline

Definition at line 321 of file CallSite.h.

llvm::ImmutableCallSite::ImmutableCallSite ( const CallInst CI)
inline

Definition at line 322 of file CallSite.h.

llvm::ImmutableCallSite::ImmutableCallSite ( const InvokeInst II)
inline

Definition at line 323 of file CallSite.h.

llvm::ImmutableCallSite::ImmutableCallSite ( const Instruction II)
inline

Definition at line 324 of file CallSite.h.

llvm::ImmutableCallSite::ImmutableCallSite ( CallSite  CS)
inline

Definition at line 325 of file CallSite.h.


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