aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/DataStructure/DSGraph.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-15 18:40:55 +0000
committerChris Lattner <sabre@nondot.org>2005-02-15 18:40:55 +0000
commitd672ab936f32a6eef0d7a099e6ef6ceb1a131e49 (patch)
tree359dfd8d520741ad59c3d297be860bfb74016686 /include/llvm/Analysis/DataStructure/DSGraph.h
parent5ad907a5e1b032a89ad0cc48ea75a578cf82ba25 (diff)
Add a new method to make it easy to update graphs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSGraph.h')
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index 760bf5783c..44b3fac112 100644
--- a/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -245,8 +245,6 @@ public:
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 @@ public:
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;