[llvm-commits] [llvm] r82904 - /llvm/trunk/include/llvm/Analysis/PostDominators.h
Dan Gohman
gohman at apple.com
Sun Sep 27 10:39:12 PDT 2009
Author: djg
Date: Sun Sep 27 12:39:12 2009
New Revision: 82904
URL: http://llvm.org/viewvc/llvm-project?rev=82904&view=rev
Log:
Add dominates and releaseMemory member functions to PostDominatorTree.
Modified:
llvm/trunk/include/llvm/Analysis/PostDominators.h
Modified: llvm/trunk/include/llvm/Analysis/PostDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/PostDominators.h?rev=82904&r1=82903&r2=82904&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/PostDominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/PostDominators.h Sun Sep 27 12:39:12 2009
@@ -49,6 +49,14 @@
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 @@
return DT->properlyDominates(A, B);
}
+ virtual void releaseMemory() {
+ DT->releaseMemory();
+ }
+
virtual void print(raw_ostream &OS, const Module*) const;
};
More information about the llvm-commits
mailing list