diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-03-24 23:45:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-03-24 23:45:20 +0000 |
| commit | 56787258e70e2c71b6642e043e5040aba0043234 (patch) | |
| tree | f8a11cd17cd3fd4a5213b40bafbe3a86d789647d | |
| parent | ad5151d785a63d0ec8ca71bf44a15f8af51c5f33 (diff) | |
| download | bcm5719-llvm-56787258e70e2c71b6642e043e5040aba0043234.tar.gz bcm5719-llvm-56787258e70e2c71b6642e043e5040aba0043234.zip | |
add new spliceFrom methods.
llvm-svn: 20823
| -rw-r--r-- | llvm/include/llvm/Analysis/DataStructure/DSGraph.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/DataStructure/DSGraph.h b/llvm/include/llvm/Analysis/DataStructure/DSGraph.h index e8555c65326..430a7bf2816 100644 --- a/llvm/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/llvm/include/llvm/Analysis/DataStructure/DSGraph.h @@ -154,6 +154,10 @@ public: GlobalSet.clear(); } + /// spliceFrom - Copy all entries from RHS, then clear RHS. + /// + void spliceFrom(DSScalarMap &RHS); + // Access to the global set: the set of all globals currently in the // scalar map. typedef GlobalSetTy::const_iterator global_iterator; @@ -455,6 +459,12 @@ public: void computeCalleeCallerMapping(DSCallSite CS, const Function &Callee, DSGraph &CalleeGraph, NodeMapTy &NodeMap); + /// spliceFrom - Logically perform the operation of cloning the RHS graph into + /// this graph, then clearing the RHS graph. Instead of performing this as + /// two seperate operations, do it as a single, much faster, one. + /// + void spliceFrom(DSGraph &RHS); + /// cloneInto - Clone the specified DSGraph into the current graph. /// /// The CloneFlags member controls various aspects of the cloning process. |

