Changes in directory llvm/include/llvm:
PassManager.h updated: 1.22 -> 1.23 --- Log message: Beautify. Clarify comments. --- Diffs of the changes: (+17 -16) PassManager.h | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) Index: llvm/include/llvm/PassManager.h diff -u llvm/include/llvm/PassManager.h:1.22 llvm/include/llvm/PassManager.h:1.23 --- llvm/include/llvm/PassManager.h:1.22 Tue Nov 7 16:44:55 2006 +++ llvm/include/llvm/PassManager.h Tue Nov 7 18:19:31 2006 @@ -88,17 +88,18 @@ bool doFinalization(); }; -/// PassManagerAnalysisHelper helpes pass manager analysis required by -/// the managed passes. +/// 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 + /// 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. + /// Return true IFF AnalysisID AID is currently available. bool analysisCurrentlyAvailable(AnalysisID AID); /// Augment RequiredSet by adding analysis required by pass P. @@ -118,11 +119,11 @@ std::vector<AnalysisID> RequiredSet; }; -/// BasicBlockpassManager_New manages BasicBlockPass. It batches all the +/// BasicBlockPassManager_New manages BasicBlockPass. It batches all the /// pass together and sequence them to process one basic block before /// processing next basic block. -class BasicBlockPassManager_New: public Pass, - public PassManagerAnalysisHelper { +class BasicBlockPassManager_New : public Pass, + public PassManagerAnalysisHelper { public: BasicBlockPassManager_New() { } @@ -135,7 +136,7 @@ bool runOnFunction(Function &F); private: - // Collection of pass that are not yet scheduled + // Collection of pass that are managed by this manager std::vector<Pass *> PassVector; }; @@ -143,8 +144,8 @@ /// It batches all function passes and basic block pass managers together and /// sequence them to process one function at a time before processing next /// function. -class FunctionPassManager_New: public Pass, - public PassManagerAnalysisHelper { +class FunctionPassManager_New : public Pass, + public PassManagerAnalysisHelper { public: FunctionPassManager_New(ModuleProvider *P) { /* TODO */ } FunctionPassManager_New() { @@ -168,7 +169,7 @@ bool runOnModule(Module &M); private: - // Collection of pass that are not yet scheduled + // Collection of pass that are manged by this manager std::vector<Pass *> PassVector; // Active Pass Managers @@ -178,8 +179,8 @@ /// ModulePassManager_New manages ModulePasses and function pass managers. /// It batches all Module passes passes and function pass managers together and /// sequence them to process one module. -class ModulePassManager_New: public Pass, - public PassManagerAnalysisHelper { +class ModulePassManager_New : public Pass, + public PassManagerAnalysisHelper { public: ModulePassManager_New() { activeFunctionPassManager = NULL; } @@ -192,7 +193,7 @@ bool runOnModule(Module &M); private: - // Collection of pass that are not yet scheduled + // Collection of pass that are managed by this manager std::vector<Pass *> PassVector; // Active Pass Manager @@ -200,8 +201,8 @@ }; /// PassManager_New manages ModulePassManagers -class PassManager_New: public Pass, - public PassManagerAnalysisHelper { +class PassManager_New : public Pass, + public PassManagerAnalysisHelper { public: _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits