diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-29 03:35:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-29 03:35:30 +0000 |
commit | 49a4b220eb7dd2d6b235be7514c30d4aac580b03 (patch) | |
tree | 1c7245806bdb31565722d3147e7274c3ff9df8c3 /include/llvm/Analysis/DataStructure/DataStructure.h | |
parent | db70a8eff3e738a6c3317d06aa56ea7a63b26387 (diff) |
Expose more information to clients
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DataStructure.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DataStructure.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index 3af030d320..1d5500d6a5 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/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; }; |