summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/PostDominators.h
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
commit22bf8f21b4e91eadc27207c4b0a7db3dd1756b4f (patch)
tree879f4743b200b9f0533e289fbc81800b8755c62b /include/llvm/Analysis/PostDominators.h
parentf37cfed7911971e0326ed0b2de526bcc26c92950 (diff)
downloadllvm-22bf8f21b4e91eadc27207c4b0a7db3dd1756b4f.tar.gz
llvm-22bf8f21b4e91eadc27207c4b0a7db3dd1756b4f.tar.bz2
llvm-22bf8f21b4e91eadc27207c4b0a7db3dd1756b4f.tar.xz
Add dominates and releaseMemory member functions to PostDominatorTree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
-rw-r--r--include/llvm/Analysis/PostDominators.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index 6c9e05fd4b..171cfdb2ea 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/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;
};