aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/DataStructure.h9
-rw-r--r--include/llvm/Analysis/DataStructure/DataStructure.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h
index 3af030d320..1d5500d6a5 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<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;
};
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;
};