Expose more information to clients

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-03-29 03:35:30 +00:00
parent db70a8eff3
commit 49a4b220eb
2 changed files with 18 additions and 0 deletions

View 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;
};

View 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;
};