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

Devang Patel dpatel at apple.com
Mon Jan 15 18:00:54 PST 2007



Changes in directory llvm/include/llvm:

PassManagers.h updated: 1.3 -> 1.4
---
Log message:

Code refactoring.


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

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


Index: llvm/include/llvm/PassManagers.h
diff -u llvm/include/llvm/PassManagers.h:1.3 llvm/include/llvm/PassManagers.h:1.4
--- llvm/include/llvm/PassManagers.h:1.3	Mon Jan 15 17:06:56 2007
+++ llvm/include/llvm/PassManagers.h	Mon Jan 15 20:00:38 2007
@@ -86,6 +86,13 @@
 
 namespace llvm {
 
+/// FunctionPassManager and PassManager, two top level managers, serve 
+/// as the public interface of pass manager infrastructure.
+enum TopLevelManagerType {
+  TLM_Function,  // FunctionPassManager
+  TLM_Pass       // PassManager
+};
+    
 //===----------------------------------------------------------------------===//
 // PMTopLevelManager
 //
@@ -118,6 +125,7 @@
   /// then return NULL.
   Pass *findAnalysisPass(AnalysisID AID);
 
+  PMTopLevelManager(enum TopLevelManagerType t);
   virtual ~PMTopLevelManager(); 
 
   /// Add immutable pass and initialize it.






More information about the llvm-commits mailing list