[llvm-commits] CVS: llvm/include/llvm/PassManager.h

Chris Lattner lattner at cs.uiuc.edu
Sun Sep 3 21:07:55 PDT 2006



Changes in directory llvm/include/llvm:

PassManager.h updated: 1.14 -> 1.15
---
Log message:

Add explicit doInitialization/doFinalization methods instead of making
the FunctionPassManager redo this for each function.


---
Diffs of the changes:  (+8 -0)

 PassManager.h |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/include/llvm/PassManager.h
diff -u llvm/include/llvm/PassManager.h:1.14 llvm/include/llvm/PassManager.h:1.15
--- llvm/include/llvm/PassManager.h:1.14	Wed Jan  4 01:47:12 2006
+++ llvm/include/llvm/PassManager.h	Sun Sep  3 23:07:39 2006
@@ -70,11 +70,19 @@
   ///
   void add(ImmutablePass *IP);
 
+  /// doInitialization - Run all of the initializers for the function passes.
+  ///
+  bool doInitialization();
+  
   /// run - Execute all of the passes scheduled for execution.  Keep
   /// track of whether any of the passes modifies the function, and if
   /// so, return true.
   ///
   bool run(Function &F);
+  
+  /// doFinalization - Run all of the initializers for the function passes.
+  ///
+  bool doFinalization();
 };
 
 } // End llvm namespace






More information about the llvm-commits mailing list