Add new method
authorChris Lattner <sabre@nondot.org>
Thu, 7 Nov 2002 06:30:17 +0000 (06:30 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Nov 2002 06:30:17 +0000 (06:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4598 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DataStructure/DSGraph.h

index a2687438ce387e166094c27a4fd90a3ef2b42748..572410d64926fe014919654d5c1a1bcd021391b3 100644 (file)
@@ -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).
index a2687438ce387e166094c27a4fd90a3ef2b42748..572410d64926fe014919654d5c1a1bcd021391b3 100644 (file)
@@ -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).