summaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-08 19:12:08 +0000
committerChris Lattner <sabre@nondot.org>2002-10-08 19:12:08 +0000
commit7ca266fe1f211afaec0bdb3b8d8e8a98d2c78fbc (patch)
tree3c798ef902c7ef845227b88b70a6af769c9fe11e /include/llvm
parentde013f53a797400104444416b980ea2e586611e4 (diff)
downloadexternal_llvm-7ca266fe1f211afaec0bdb3b8d8e8a98d2c78fbc.zip
external_llvm-7ca266fe1f211afaec0bdb3b8d8e8a98d2c78fbc.tar.gz
external_llvm-7ca266fe1f211afaec0bdb3b8d8e8a98d2c78fbc.tar.bz2
Expose new "recalculate" method from dominatorset
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/Dominators.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index 81f0eaf..815be7d 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/include/llvm/Analysis/Dominators.h
@@ -128,6 +128,11 @@ struct DominatorSet : public DominatorSetBase {
virtual bool runOnFunction(Function &F);
+ /// recalculate - This method may be called by external passes that modify the
+ /// CFG and then need dominator information recalculated. This method is
+ /// obviously really slow, so it should be avoided if at all possible.
+ void recalculate();
+
// getAnalysisUsage - This simply provides a dominator set
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();