diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index 3af030d3200..1d5500d6a52 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/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 &Allocs); + // getValueMap - Get a map that describes what the nodes the scalars in this + // function point to... + // + std::map &getValueMap() { return ValueMap; } + + + void printFunction(std::ostream &O, const char *Label) const; }; diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index 3af030d3200..1d5500d6a52 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 &Allocs); + // getValueMap - Get a map that describes what the nodes the scalars in this + // function point to... + // + std::map &getValueMap() { return ValueMap; } + + + void printFunction(std::ostream &O, const char *Label) const; };