summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/LoopPass.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-03-06 17:59:37 +0000
committerDevang Patel <dpatel@apple.com>2007-03-06 17:59:37 +0000
commit22033be445aea2a28e8d11d2e2453382a1515f12 (patch)
treeef0a652e5b43b8000f17df78b095ac322c387f96 /include/llvm/Analysis/LoopPass.h
parent7b65dd91c156590c03847152a202bf7aa9b0c556 (diff)
downloadllvm-22033be445aea2a28e8d11d2e2453382a1515f12.tar.gz
llvm-22033be445aea2a28e8d11d2e2453382a1515f12.tar.bz2
llvm-22033be445aea2a28e8d11d2e2453382a1515f12.tar.xz
LPPassManager. Implement preparePassManager() hook.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopPass.h')
-rw-r--r--include/llvm/Analysis/LoopPass.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h
index 4f449952d9..d04287d1ba 100644
--- a/include/llvm/Analysis/LoopPass.h
+++ b/include/llvm/Analysis/LoopPass.h
@@ -44,7 +44,15 @@ class LoopPass : public Pass {
// Finalization hook does not supply Loop because at this time
// loop nest is completely different.
virtual bool doFinalization() { return false; }
-
+
+ // Check if this pass is suitable for the current LPPassManager, if
+ // available. This pass P is not suitable for a LPPassManager if P
+ // is not preserving higher level analysis info used by other
+ // LPPassManager passes. In such case, pop LPPassManager from the
+ // stack. This will force assignPassManager() to create new
+ // LPPassManger as expected.
+ void preparePassManager(PMStack &PMS);
+
/// Assign pass manager to manager this pass
virtual void assignPassManager(PMStack &PMS,
PassManagerType PMT = PMT_LoopPassManager);