[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopPass.h
Devang Patel
dpatel at apple.com
Tue Mar 6 08:59:20 PST 2007
Changes in directory llvm/include/llvm/Analysis:
LoopPass.h updated: 1.8 -> 1.9
---
Log message:
LPPassManager : Add initialization and finalizatino hooks.
---
Diffs of the changes: (+9 -0)
LoopPass.h | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/include/llvm/Analysis/LoopPass.h
diff -u llvm/include/llvm/Analysis/LoopPass.h:1.8 llvm/include/llvm/Analysis/LoopPass.h:1.9
--- llvm/include/llvm/Analysis/LoopPass.h:1.8 Mon Mar 5 20:30:46 2007
+++ llvm/include/llvm/Analysis/LoopPass.h Tue Mar 6 10:59:03 2007
@@ -36,6 +36,15 @@
return false;
}
+ // Initialization and finalization hooks.
+ virtual bool doInitialization(Loop *L, LPPassManager &LPM) {
+ return false;
+ }
+
+ // Finalization hook does not supply Loop because at this time
+ // loop nest is completely different.
+ virtual bool doFinalization() { return false; }
+
/// Assign pass manager to manager this pass
virtual void assignPassManager(PMStack &PMS,
PassManagerType PMT = PMT_LoopPassManager);
More information about the llvm-commits
mailing list