summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 03:35:30 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 03:35:30 +0000
commit9cd4241633423c25f0f9d2e99504977084b2fad1 (patch)
treef4915acfc69a42b459995e4c49dfa9fd7618e334 /llvm
parent5814395906444d39047abb701a407099369661c6 (diff)
downloadbcm5719-llvm-9cd4241633423c25f0f9d2e99504977084b2fad1.tar.gz
bcm5719-llvm-9cd4241633423c25f0f9d2e99504977084b2fad1.zip
Expose more information to clients
llvm-svn: 2027
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/DataStructure.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/DataStructure.h b/llvm/include/llvm/Analysis/DataStructure.h
index 3af030d3200..1d5500d6a52 100644
--- a/llvm/include/llvm/Analysis/DataStructure.h
+++ b/llvm/include/llvm/Analysis/DataStructure.h
@@ -189,6 +189,8 @@ public:
bool isAllocaNode() const;
bool isMallocNode() const { return !isAllocaNode(); }
+ AllocationInst *getAllocation() const { return Allocation; }
+
// isEquivalentTo - Return true if the nodes should be merged...
virtual bool isEquivalentTo(DSNode *Node) const;
@@ -382,6 +384,13 @@ public:
//
void getNonEscapingAllocations(std::vector<AllocDSNode*> &Allocs);
+ // getValueMap - Get a map that describes what the nodes the scalars in this
+ // function point to...
+ //
+ std::map<Value*, PointerValSet> &getValueMap() { return ValueMap; }
+
+
+
void printFunction(std::ostream &O, const char *Label) const;
};
OpenPOWER on IntegriCloud