From 49a4b220eb7dd2d6b235be7514c30d4aac580b03 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 29 Mar 2002 03:35:30 +0000 Subject: [PATCH] Expose more information to clients git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2027 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure.h | 9 +++++++++ include/llvm/Analysis/DataStructure/DataStructure.h | 9 +++++++++ 2 files changed, 18 insertions(+) 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; }; -- 2.34.1