aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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).