[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 15 09:52:23 PST 2005
Changes in directory llvm/include/llvm/Analysis/DataStructure:
DSGraph.h updated: 1.91 -> 1.92
---
Log message:
remove warning, make computeGGToGMapping return an invnodemap.
---
Diffs of the changes: (+8 -7)
DSGraph.h | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
Index: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.91 llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.92
--- llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.91 Tue Mar 15 10:46:11 2005
+++ llvm/include/llvm/Analysis/DataStructure/DSGraph.h Tue Mar 15 11:52:07 2005
@@ -124,6 +124,10 @@
/// keep track of the correspondence between the nodes in the old and new
/// graphs.
typedef hash_map<const DSNode*, DSNodeHandle> NodeMapTy;
+
+ // InvNodeMapTy - This data type is used to represent the inverse of a node
+ // map.
+ typedef hash_multimap<DSNodeHandle, const DSNode*> InvNodeMapTy;
private:
DSGraph *GlobalsGraph; // Pointer to the common graph of global objects
bool PrintAuxCalls; // Should this graph print the Aux calls vector?
@@ -383,16 +387,13 @@
const DSNodeHandle &NH2, NodeMapTy &NodeMap,
bool StrictChecking = true);
- /// computeGGToGMapping - Compute the mapping of nodes in the global
- /// graph to nodes in this graph.
- void computeGGToGMapping(NodeMapTy &NodeMap);
-
/// computeGToGGMapping - Compute the mapping of nodes in the graph to nodes
- /// in the globals graph. Note that any uses of this method are probably
- /// bugs, unless it is known that the globals graph has been merged into this
- /// graph!
+ /// in the globals graph.
void computeGToGGMapping(NodeMapTy &NodeMap);
+ /// computeGGToGMapping - Compute the mapping of nodes in the global
+ /// graph to nodes in this graph.
+ void computeGGToGMapping(InvNodeMapTy &InvNodeMap);
/// cloneInto - Clone the specified DSGraph into the current graph. The
/// translated ScalarMap for the old function is filled into the OldValMap
More information about the llvm-commits
mailing list