From: Chris Lattner Date: Thu, 3 Feb 2005 18:40:05 +0000 (+0000) Subject: Add a new method. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3a826203c76137fc231b8c80fd506a3963b9a3c0;p=oota-llvm.git Add a new method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20017 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index 49c71f0b3d1..5b9b89f2dbe 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -375,6 +375,15 @@ public: ReturnNodesTy &OldReturnNodes, NodeMapTy &OldNodeMap, unsigned CloneFlags = 0); + /// getFunctionArgumentsForCall - Given a function that is currently in this + /// graph, return the DSNodeHandles that correspond to the pointer-compatible + /// function arguments. The vector is filled in with the return value (or + /// null if it is not pointer compatible), followed by all of the + /// pointer-compatible arguments. + void getFunctionArgumentsForCall(Function *F, + std::vector &Args) const; + + /// mergeInGraph - The method is used for merging graphs together. If the /// argument graph is not *this, it makes a clone of the specified graph, then /// merges the nodes specified in the call site with the formal arguments in