[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Mar 17 15:45:51 PST 2005
Changes in directory llvm/include/llvm/Analysis/DataStructure:
DSGraph.h updated: 1.93 -> 1.94
---
Log message:
add 3 methods
---
Diffs of the changes: (+8 -0)
DSGraph.h | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.93 llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.94
--- llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.93 Wed Mar 16 16:42:01 2005
+++ llvm/include/llvm/Analysis/DataStructure/DSGraph.h Thu Mar 17 17:45:35 2005
@@ -106,6 +106,8 @@
typedef GlobalSetTy::const_iterator global_iterator;
global_iterator global_begin() const { return GlobalSet.begin(); }
global_iterator global_end() const { return GlobalSet.end(); }
+ unsigned global_size() const { return GlobalSet.size(); }
+ unsigned global_count(GlobalValue *GV) const { return GlobalSet.count(GV); }
};
@@ -399,6 +401,12 @@
/// graph to nodes in this graph.
void computeGGToGMapping(InvNodeMapTy &InvNodeMap);
+ /// computeCalleeCallerMapping - Given a call from a function in the current
+ /// graph to the 'Callee' function (which lives in 'CalleeGraph'), compute the
+ /// mapping of nodes from the callee to nodes in the caller.
+ void computeCalleeCallerMapping(DSCallSite CS, const Function &Callee,
+ DSGraph &CalleeGraph, NodeMapTy &NodeMap);
+
/// cloneInto - Clone the specified DSGraph into the current graph. The
/// translated ScalarMap for the old function is filled into the OldValMap
/// member, and the translated ReturnNodes map is returned into ReturnNodes.
More information about the llvm-commits
mailing list