-class ModulePassManager_New;
-class PassManagerImpl_New;
-
-/// PassManagerAnalysisHelper helps pass manager analysis required by
-/// the managed passes. It provides methods to add/remove analysis
-/// available and query if certain analysis is available or not.
-class PassManagerAnalysisHelper {
-
-public:
-
- /// Return true IFF pass P's required analysis set does not required new
- /// manager.
- bool manageablePass(Pass *P);
-
- /// Return true IFF AnalysisID AID is currently available.
- bool analysisCurrentlyAvailable(AnalysisID AID);
-
- /// Augment RequiredSet by adding analysis required by pass P.
- void noteDownRequiredAnalysis(Pass *P);
-
- /// Remove AnalysisID from the RequiredSet
- void removeAnalysis(AnalysisID AID);
-
- /// Remove Analysis that is not preserved by the pass
- void removeNotPreservedAnalysis(Pass *P);
-
- /// Remove dead passes
- void removeDeadPasses() { /* TODO : Implement */ }
-
-private:
- // Required set of analysis for the passes managed by this manager
- std::vector<AnalysisID> RequiredSet;
-};
-
-/// PassManager_New manages ModulePassManagers
-class PassManager_New : public Pass,
- public PassManagerAnalysisHelper {
-
-public:
-
- PassManager_New();