[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Mar 24 15:45:36 PST 2005
Changes in directory llvm/include/llvm/Analysis/DataStructure:
DSGraph.h updated: 1.107 -> 1.108
---
Log message:
add new spliceFrom methods.
---
Diffs of the changes: (+10 -0)
DSGraph.h | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.107 llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.108
--- llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.107 Tue Mar 22 13:44:11 2005
+++ llvm/include/llvm/Analysis/DataStructure/DSGraph.h Thu Mar 24 17:45:20 2005
@@ -154,6 +154,10 @@
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 @@
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.
More information about the llvm-commits
mailing list