aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-11 05:08:36 +0000
committerChris Lattner <sabre@nondot.org>2003-11-11 05:08:36 +0000
commit3b120be94fec6464290cb3a92e66c6b706a27cbb (patch)
treea1a3a4785fb1e368584ff647362baf972be73128
parent4bf44c294b096a9000ce8fb9a25ad352ad540d0e (diff)
downloadexternal_llvm-3b120be94fec6464290cb3a92e66c6b706a27cbb.zip
external_llvm-3b120be94fec6464290cb3a92e66c6b706a27cbb.tar.gz
external_llvm-3b120be94fec6464290cb3a92e66c6b706a27cbb.tar.bz2
Add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9879 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/DSGraph.h9
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h
index 4226cf1..399da00 100644
--- a/include/llvm/Analysis/DSGraph.h
+++ b/include/llvm/Analysis/DSGraph.h
@@ -254,6 +254,15 @@ public:
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.
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index 4226cf1..399da00 100644
--- a/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -254,6 +254,15 @@ public:
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.