diff options
author | Devang Patel <dpatel@apple.com> | 2006-11-08 00:19:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-11-08 00:19:31 +0000 |
commit | a9bf6f329e48504c4e38a892adb5e8e97e6f86fd (patch) | |
tree | 143973bff52f51292b70e2c09d15108a7769b463 /include/llvm/PassManager.h | |
parent | 53596b6ba5d3199621e5a6e0cdbfcde3ee710397 (diff) |
Beautify.
Clarify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassManager.h')
-rw-r--r-- | include/llvm/PassManager.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h index dfa9fe0941..1f9bf92ccd 100644 --- a/include/llvm/PassManager.h +++ b/include/llvm/PassManager.h @@ -88,17 +88,18 @@ public: 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 @@ private: 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 @@ public: 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 @@ private: /// 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 @@ public: 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 @@ private: /// 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 @@ public: 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 @@ private: }; /// PassManager_New manages ModulePassManagers -class PassManager_New: public Pass, - public PassManagerAnalysisHelper { +class PassManager_New : public Pass, + public PassManagerAnalysisHelper { public: |