[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 15 10:40:53 PST 2005
Changes in directory llvm/include/llvm/Analysis/DataStructure:
DSGraph.h updated: 1.87 -> 1.88
---
Log message:
Add a new method to make it easy to update graphs.
---
Diffs of the changes: (+10 -2)
DSGraph.h | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.87 llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.88
--- llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.87 Fri Feb 4 13:58:06 2005
+++ llvm/include/llvm/Analysis/DataStructure/DSGraph.h Tue Feb 15 12:40:38 2005
@@ -245,8 +245,6 @@
afc_iterator afc_begin() const { return AuxFunctionCalls.begin(); }
afc_iterator afc_end() const { return AuxFunctionCalls.end(); }
-
-
/// getInlinedGlobals - Get the set of globals that are have been inlined
/// (from callees in BU or from callers in TD) into the current graph.
///
@@ -298,6 +296,16 @@
return Nodes.size();
}
+ /// addObjectToGraph - This method can be used to add global, stack, and heap
+ /// objects to the graph. This can be used when updating DSGraphs due to the
+ /// introduction of new temporary objects. The new object is not pointed to
+ /// and does not point to any other objects in the graph. Note that this
+ /// method initializes the type of the DSNode to the declared type of the
+ /// object if UseDeclaredType is true, otherwise it leaves the node type as
+ /// void.
+ DSNode *addObjectToGraph(Value *Ptr, bool UseDeclaredType = true);
+
+
/// print - Print a dot graph to the specified ostream...
///
void print(std::ostream &O) const;
More information about the llvm-commits
mailing list