summaryrefslogtreecommitdiff
path: root/include/llvm/PassManager.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-11-08 10:29:57 +0000
committerDevang Patel <dpatel@apple.com>2006-11-08 10:29:57 +0000
commit5a39b2e8067450839a1a041a26e2f9d8dd07f40a (patch)
tree8afc2e5e771bac3033c36c4cff5ba1737f585b58 /include/llvm/PassManager.h
parentc67c938de2097f26dba71d9436e4707dd8a5012d (diff)
Split PassManager_New into PassManager_New and PassManagerImpl_New.
PassManagerImpl_New implements the pass manager. PassManager_New is the public interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassManager.h')
-rw-r--r--include/llvm/PassManager.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h
index 31ce3daae4f..927ea9f785b 100644
--- a/include/llvm/PassManager.h
+++ b/include/llvm/PassManager.h
@@ -89,6 +89,7 @@ public:
};
class ModulePassManager_New;
+class PassManagerImpl_New;
/// PassManagerAnalysisHelper helps pass manager analysis required by
/// the managed passes. It provides methods to add/remove analysis
@@ -127,6 +128,8 @@ class PassManager_New : public Pass,
public:
+ PassManager_New();
+
/// add - Add a pass to the queue of passes to run. This passes ownership of
/// the Pass to the PassManager. When the PassManager is destroyed, the pass
/// will be destroyed as well, so there is no need to delete the pass. This
@@ -138,22 +141,11 @@ public:
bool run(Module &M);
private:
-
- /// Add a pass into a passmanager queue. This is used by schedulePasses
- bool addPass(Pass *p);
- /// Schedule all passes collected in pass queue using add(). Add all the
- /// schedule passes into various manager's queue using addPass().
- void schedulePasses();
+ /// PassManagerImpl_New is the actual class. PassManager_New is just the
+ /// wraper to publish simple pass manager interface
+ PassManagerImpl_New *PM;
- // Collection of pass managers
- std::vector<ModulePassManager_New *> PassManagers;
-
- // Collection of pass that are not yet scheduled
- std::vector<Pass *> PassVector;
-
- // Active Pass Manager
- ModulePassManager_New *activeManager;
};
} // End llvm namespace