summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-27 17:39:12 +0000
committerDan Gohman <gohman@apple.com>2009-09-27 17:39:12 +0000
commitbb85dd6f33a8d83cc56fcaf96ad3ee61044ba659 (patch)
treec142d831d9dec2ca65f470efac6d4a2d0479d7f8
parent0e70af36c0548370cca4e62e7c4450dcefe9c7ef (diff)
downloadbcm5719-llvm-bb85dd6f33a8d83cc56fcaf96ad3ee61044ba659.tar.gz
bcm5719-llvm-bb85dd6f33a8d83cc56fcaf96ad3ee61044ba659.zip
Add dominates and releaseMemory member functions to PostDominatorTree.
llvm-svn: 82904
-rw-r--r--llvm/include/llvm/Analysis/PostDominators.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/PostDominators.h b/llvm/include/llvm/Analysis/PostDominators.h
index 6c9e05fd4b2..171cfdb2eac 100644
--- a/llvm/include/llvm/Analysis/PostDominators.h
+++ b/llvm/include/llvm/Analysis/PostDominators.h
@@ -49,6 +49,14 @@ struct PostDominatorTree : public FunctionPass {
return DT->getNode(BB);
}
+ inline bool dominates(DomTreeNode* A, DomTreeNode* B) const {
+ return DT->dominates(A, B);
+ }
+
+ inline bool dominates(const BasicBlock* A, const BasicBlock* B) const {
+ return DT->dominates(A, B);
+ }
+
inline bool properlyDominates(const DomTreeNode* A, DomTreeNode* B) const {
return DT->properlyDominates(A, B);
}
@@ -57,6 +65,10 @@ struct PostDominatorTree : public FunctionPass {
return DT->properlyDominates(A, B);
}
+ virtual void releaseMemory() {
+ DT->releaseMemory();
+ }
+
virtual void print(raw_ostream &OS, const Module*) const;
};
OpenPOWER on IntegriCloud