[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopPass.h
Devang Patel
dpatel at apple.com
Tue Mar 6 09:59:56 PST 2007
Changes in directory llvm/include/llvm/Analysis:
LoopPass.h updated: 1.9 -> 1.10
---
Log message:
LPPassManager. Implement preparePassManager() hook.
---
Diffs of the changes: (+9 -1)
LoopPass.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Analysis/LoopPass.h
diff -u llvm/include/llvm/Analysis/LoopPass.h:1.9 llvm/include/llvm/Analysis/LoopPass.h:1.10
--- llvm/include/llvm/Analysis/LoopPass.h:1.9 Tue Mar 6 10:59:03 2007
+++ llvm/include/llvm/Analysis/LoopPass.h Tue Mar 6 11:59:37 2007
@@ -44,7 +44,15 @@
// 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);
More information about the llvm-commits
mailing list