From cee3a4ef107f4c7d7ea0d8d44d02bd2d96eef7a7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 7 Nov 2002 06:30:17 +0000 Subject: [PATCH] Add new method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4598 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DSGraph.h | 9 +++++++++ include/llvm/Analysis/DataStructure/DSGraph.h | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h index a2687438ce3..572410d6492 100644 --- a/include/llvm/Analysis/DSGraph.h +++ b/include/llvm/Analysis/DSGraph.h @@ -136,6 +136,15 @@ public: std::map &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 a2687438ce3..572410d6492 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -136,6 +136,15 @@ public: std::map &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).