[llvm-commits] [llvm] r111193 - /llvm/trunk/include/llvm/PassManagers.h
Dan Gohman
gohman at apple.com
Mon Aug 16 15:03:47 PDT 2010
Author: djg
Date: Mon Aug 16 17:03:47 2010
New Revision: 111193
URL: http://llvm.org/viewvc/llvm-project?rev=111193&view=rev
Log:
Make some of PMTopLevelManager's members non-public. In particular,
make its constructor protected.
Modified:
llvm/trunk/include/llvm/PassManagers.h
Modified: llvm/trunk/include/llvm/PassManagers.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassManagers.h?rev=111193&r1=111192&r2=111193&view=diff
==============================================================================
--- llvm/trunk/include/llvm/PassManagers.h (original)
+++ llvm/trunk/include/llvm/PassManagers.h Mon Aug 16 17:03:47 2010
@@ -163,21 +163,26 @@
/// PMTopLevelManager manages LastUser info and collects common APIs used by
/// top level pass managers.
class PMTopLevelManager {
-public:
+protected:
+ explicit PMTopLevelManager(PMDataManager *PMDM);
virtual unsigned getNumContainedManagers() const {
return (unsigned)PassManagers.size();
}
- /// Schedule pass P for execution. Make sure that passes required by
- /// P are run before P is run. Update analysis info maintained by
- /// the manager. Remove dead passes. This is a recursive function.
- void schedulePass(Pass *P);
+ void initializeAllAnalysisInfo();
+private:
/// This is implemented by top level pass manager and used by
/// schedulePass() to add analysis info passes that are not available.
virtual void addTopLevelPass(Pass *P) = 0;
+public:
+ /// Schedule pass P for execution. Make sure that passes required by
+ /// P are run before P is run. Update analysis info maintained by
+ /// the manager. Remove dead passes. This is a recursive function.
+ void schedulePass(Pass *P);
+
/// Set pass P as the last user of the given analysis passes.
void setLastUser(SmallVector<Pass *, 12> &AnalysisPasses, Pass *P);
@@ -192,7 +197,6 @@
/// Find analysis usage information for the pass P.
AnalysisUsage *findAnalysisUsage(Pass *P);
- explicit PMTopLevelManager(PMDataManager *PMDM);
virtual ~PMTopLevelManager();
/// Add immutable pass and initialize it.
@@ -219,8 +223,6 @@
void dumpPasses() const;
void dumpArguments() const;
- void initializeAllAnalysisInfo();
-
// Active Pass Managers
PMStack activeStack;
More information about the llvm-commits
mailing list