LLVM API Documentation
#include <CallSite.h>
Collaboration diagram for llvm::CallSite:
Public Types | |
typedef User::op_iterator | arg_iterator |
Public Member Functions | |
CallSite () | |
CallSite (CallInst *CI) | |
CallSite (InvokeInst *II) | |
CallSite (const CallSite &CS) | |
CallSite & | operator= (const CallSite &CS) |
const Type * | getType () const |
Instruction * | getInstruction () const |
Function * | getCaller () const |
Value * | getCalledValue () const |
Function * | getCalledFunction () const |
void | setCalledFunction (Value *V) |
Value * | getArgument (unsigned ArgNo) const |
arg_iterator | arg_begin () const |
arg_iterator | arg_end () const |
unsigned | arg_size () const |
bool | operator< (const CallSite &CS) const |
Static Public Member Functions | |
static CallSite | get (Value *V) |
Definition at line 31 of file CallSite.h.
|
arg_iterator - The type of iterator to use when looping over actual arguments at this call site... Definition at line 95 of file CallSite.h. |
|
Definition at line 34 of file CallSite.h. Referenced by get(). |
|
Definition at line 35 of file CallSite.h. |
|
Definition at line 36 of file CallSite.h. |
|
Definition at line 37 of file CallSite.h. |
|
arg_begin/arg_end - Return iterators corresponding to the actual argument list for a call site. Definition at line 100 of file CallSite.h. References llvm::Instruction::Call, llvm::Instruction::getOpcode(), and llvm::User::op_begin(). Referenced by arg_size(), CallPassesValueThoughVararg(), getArgument(), llvm::DSGraph::getDSCallSiteForCallSite(), llvm::InlineFunction(), isOnlyADirectCall(), and llvm::Interpreter::visitCallSite(). |
|
Definition at line 107 of file CallSite.h. References llvm::User::op_end(). Referenced by arg_size(), CallPassesValueThoughVararg(), getArgument(), llvm::DSGraph::getDSCallSiteForCallSite(), llvm::InlineFunction(), isOnlyADirectCall(), and llvm::Interpreter::visitCallSite(). |
|
Definition at line 108 of file CallSite.h. References arg_begin(), and arg_end(). Referenced by llvm::Interpreter::visitCallSite(). |
|
CallSite::get - This static method is sort of like a constructor. It will create an appropriate call site for a Call or Invoke instruction, but it can also create a null initialized CallSite object for something which is NOT a call site. Definition at line 45 of file CallSite.h. References llvm::Instruction::Call, CallSite(), and llvm::Instruction::getOpcode(). Referenced by llvm::Inliner::runOnSCC(). |
|
Definition at line 88 of file CallSite.h. References arg_begin(), and arg_end(). Referenced by AllCalleesPassInValidPointerForArgument(). |
|
getCalledFunction - Return the function being called if this is a direct call, otherwise return null (if it's an indirect call). Definition at line 77 of file CallSite.h. References getCalledValue(). Referenced by llvm::AliasSetTracker::add(), llvm::DSGraph::getDSCallSiteForCallSite(), llvm::AliasAnalysis::getModRefInfo(), InlineCallIfPossible(), llvm::InlineFunction(), llvm::AliasSetTracker::remove(), llvm::Inliner::runOnSCC(), and llvm::Interpreter::visitCallSite(). |
|
getCalledValue - Return the pointer to function that is being called... Definition at line 69 of file CallSite.h. References llvm::User::getOperand(). Referenced by CallPassesValueThoughVararg(), getCalledFunction(), llvm::DSGraph::getDSCallSiteForCallSite(), and llvm::Interpreter::visitCallSite(). |
|
getCaller - Return the caller function for this call site Definition at line 65 of file CallSite.h. References llvm::BasicBlock::getParent(), and llvm::Instruction::getParent(). |
|
getInstruction - Return the instruction this call site corresponds to Definition at line 61 of file CallSite.h. Referenced by AllCalleesPassInValidPointerForArgument(), CallersAllIgnoreReturnValue(), llvm::DSCallSite::getCaller(), llvm::DSGraph::getDSCallSiteForCallSite(), InlineCallIfPossible(), llvm::InlineFunction(), isOnlyADirectCall(), operator<(), llvm::Inliner::runOnSCC(), and llvm::Interpreter::visitCallSite(). |
|
getType - Return the type of the instruction that generated this call site Definition at line 57 of file CallSite.h. References llvm::Value::getType(). |
|
Definition at line 110 of file CallSite.h. References getInstruction(). |
|
Definition at line 38 of file CallSite.h. References I. |
|
setCalledFunction - Set the callee to the specified value... Definition at line 83 of file CallSite.h. References llvm::User::setOperand(). |