LLVM API Documentation
#include <DSSupport.h>
Collaboration diagram for llvm::DSCallSite:
Public Member Functions | |
DSCallSite (CallSite CS, const DSNodeHandle &rv, DSNode *Callee, std::vector< DSNodeHandle > &Args) | |
DSCallSite (CallSite CS, const DSNodeHandle &rv, Function *Callee, std::vector< DSNodeHandle > &Args) | |
DSCallSite (const DSCallSite &DSCS) | |
template<typename MapTy> | |
DSCallSite (const DSCallSite &FromCall, MapTy &NodeMap) | |
const DSCallSite & | operator= (const DSCallSite &RHS) |
bool | isDirectCall () const |
bool | isIndirectCall () const |
Function & | getCaller () const |
CallSite | getCallSite () const |
DSNodeHandle & | getRetVal () |
const DSNodeHandle & | getRetVal () const |
DSNode * | getCalleeNode () const |
Function * | getCalleeFunc () const |
unsigned | getNumPtrArgs () const |
DSNodeHandle & | getPtrArg (unsigned i) |
const DSNodeHandle & | getPtrArg (unsigned i) const |
void | swap (DSCallSite &CS) |
void | mergeWith (DSCallSite &CS) |
void | markReachableNodes (hash_set< DSNode * > &Nodes) |
bool | operator< (const DSCallSite &CS) const |
bool | operator== (const DSCallSite &CS) const |
Definition at line 155 of file DSSupport.h.
|
Constructor. Note - This ctor destroys the argument vector passed in. On exit, the argument vector is empty. Definition at line 191 of file DSSupport.h. |
|
Definition at line 197 of file DSSupport.h. |
|
Definition at line 204 of file DSSupport.h. |
|
Mapping copy constructor - This constructor takes a preexisting call site to copy plus a map that specifies how the links should be transformed. This is useful when moving a call site from one graph to another. Definition at line 213 of file DSSupport.h. |
|
Definition at line 250 of file DSSupport.h. References llvm::DSNodeHandle::getNode(). Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), and removeIdenticalCalls(). |
|
Definition at line 247 of file DSSupport.h. References llvm::DSNodeHandle::getNode(). Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), llvm::DSGraph::AssertCallSiteInGraph(), CallSiteUsesAliveArgs(), markReachableNodes(), and removeIdenticalCalls(). |
|
Definition at line 1039 of file DataStructure.cpp. References llvm::CallSite::getInstruction(), llvm::BasicBlock::getParent(), and llvm::Instruction::getParent(). |
|
Definition at line 243 of file DSSupport.h. |
|
|
Definition at line 260 of file DSSupport.h. |
|
|
Definition at line 245 of file DSSupport.h. |
|
|
isDirectCall - Return true if this call site is a direct call of the function specified by getCalleeFunc. If not, it is an indirect call to the node specified by getCalleeNode. Definition at line 237 of file DSSupport.h. Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), isIndirectCall(), operator<(), and removeIdenticalCalls(). |
|
Definition at line 238 of file DSSupport.h. References isDirectCall(). Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), llvm::DSGraph::AssertCallSiteInGraph(), CallSiteUsesAliveArgs(), markReachableNodes(), operator<(), and removeIdenticalCalls(). |
|
markReachableNodes - This method recursively traverses the specified DSNodes, marking any nodes which are reachable. All reachable nodes it adds to the set, which allows it to only traverse visited nodes once. Definition at line 1701 of file DataStructure.cpp. References getCalleeNode(), llvm::DSNodeHandle::getNode(), getNumPtrArgs(), getPtrArg(), getRetVal(), isIndirectCall(), and llvm::DSNode::markReachableNodes(). |
|
mergeWith - Merge the return value and parameters of the these two call sites. Definition at line 278 of file DSSupport.h. References getNumPtrArgs(), getPtrArg(), getRetVal(), and llvm::DSNodeHandle::mergeWith(). Referenced by removeIdenticalCalls(). |
|
Definition at line 293 of file DSSupport.h. References CallArgs, CalleeF, CalleeN, isDirectCall(), isIndirectCall(), and RetVal. |
|
Definition at line 224 of file DSSupport.h. |
|
Definition at line 308 of file DSSupport.h. |
|
Definition at line 265 of file DSSupport.h. |