diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-17 23:45:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-17 23:45:35 +0000 |
commit | 0f344122938a9a6c8e026542ac741540a5d04f99 (patch) | |
tree | 15d863e26578d53f626bf74de055e9b562e2c789 | |
parent | 1edb190cfb02f43a380b0392ccb4a0cff9de88a6 (diff) |
add 3 methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20667 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index 9da47af5fe..22a31bd311 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -106,6 +106,8 @@ public: 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 @@ public: /// 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. |