[llvm-commits] CVS: llvm/include/llvm/Analysis/DSGraph.h

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 10 23:09:01 PST 2003


Changes in directory llvm/include/llvm/Analysis:

DSGraph.h updated: 1.61 -> 1.62

---
Log message:

Add new method


---
Diffs of the changes:  (+9 -0)

Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.61 llvm/include/llvm/Analysis/DSGraph.h:1.62
--- llvm/include/llvm/Analysis/DSGraph.h:1.61	Sun Nov  2 16:27:15 2003
+++ llvm/include/llvm/Analysis/DSGraph.h	Mon Nov 10 23:08:36 2003
@@ -254,6 +254,15 @@
                               NodeMapTy& CompletedNodeMap,
                               unsigned CloneFlags = 0);
 
+
+  /// computeNodeMapping - Given roots in two different DSGraphs, traverse the
+  /// nodes reachable from the two graphs, computing the mapping of nodes from
+  /// the first to the second graph.
+  ///
+  static void computeNodeMapping(const DSNodeHandle &NH1,
+                                 const DSNodeHandle &NH2, 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