aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-07 06:30:17 +0000
committerChris Lattner <sabre@nondot.org>2002-11-07 06:30:17 +0000
commitcee3a4ef107f4c7d7ea0d8d44d02bd2d96eef7a7 (patch)
tree477b0535fcde501f7cd8ee914dd388f4ddf3ae31
parent04781177b9893a206f9adee30a9d1f871b26fe19 (diff)
Add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4598 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 a2687438ce..572410d649 100644
--- a/include/llvm/Analysis/DSGraph.h
+++ b/include/llvm/Analysis/DSGraph.h
@@ -136,6 +136,15 @@ public:
std::map<const DSNode*, DSNode*> &OldNodeMap,
bool StripAllocas = false);
+ /// mergeInGraph - The method is used for merging graphs together. If the
+ /// argument graph is not *this, it makes a clone of the specified graph, then
+ /// merges the nodes specified in the call site with the formal arguments in
+ /// the graph. If the StripAlloca's argument is true then Alloca markers are
+ /// removed from nodes.
+ ///
+ void mergeInGraph(DSCallSite &CS, const DSGraph &Graph, bool StripAllocas);
+
+
#if 0
// cloneGlobalInto - Clone the given global node (or the node for the given
// GlobalValue) from the GlobalsGraph and all its target links (recursively).
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index a2687438ce..572410d649 100644
--- a/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -136,6 +136,15 @@ public:
std::map<const DSNode*, DSNode*> &OldNodeMap,
bool StripAllocas = false);
+ /// mergeInGraph - The method is used for merging graphs together. If the
+ /// argument graph is not *this, it makes a clone of the specified graph, then
+ /// merges the nodes specified in the call site with the formal arguments in
+ /// the graph. If the StripAlloca's argument is true then Alloca markers are
+ /// removed from nodes.
+ ///
+ void mergeInGraph(DSCallSite &CS, const DSGraph &Graph, bool StripAllocas);
+
+
#if 0
// cloneGlobalInto - Clone the given global node (or the node for the given
// GlobalValue) from the GlobalsGraph and all its target links (recursively).