Expose more information to clients
authorChris Lattner <sabre@nondot.org>
Fri, 29 Mar 2002 03:35:30 +0000 (03:35 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Mar 2002 03:35:30 +0000 (03:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2027 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure.h
include/llvm/Analysis/DataStructure/DataStructure.h

index 3af030d32007eaf52e54a39262a9ee96707c5a50..1d5500d6a525324f16edd93407093f328c343bc5 100644 (file)
@@ -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;
 };
 
index 3af030d32007eaf52e54a39262a9ee96707c5a50..1d5500d6a525324f16edd93407093f328c343bc5 100644 (file)
@@ -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;
 };