diff options
author | Devang Patel <dpatel@apple.com> | 2006-12-07 21:58:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-12-07 21:58:50 +0000 |
commit | b917e38c84fa9c7c434762a0e587af63eec939e5 (patch) | |
tree | a4a935f910a48c9aab510859bf3a06309f2ecd73 | |
parent | 502f19e0f8ba47b5916a7e9d445f4ee071cdf132 (diff) | |
download | external_llvm-b917e38c84fa9c7c434762a0e587af63eec939e5.zip external_llvm-b917e38c84fa9c7c434762a0e587af63eec939e5.tar.gz external_llvm-b917e38c84fa9c7c434762a0e587af63eec939e5.tar.bz2 |
Add TODOs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32328 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/PassManager.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index f66d3de..8324631 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -313,6 +313,7 @@ public: bool runOnFunction(Function &F); /// Return true IFF AnalysisID AID is currently available. + /// TODO : Replace this method with getAnalysisPass() Pass *getAnalysisPassFromManager(AnalysisID AID); /// Pass Manager itself does not invalidate any analysis info. @@ -360,6 +361,7 @@ public: bool runOnFunction(Function &F); /// Return true IFF AnalysisID AID is currently available. + /// TODO : Replace this method with getAnalysisPass() Pass *getAnalysisPassFromManager(AnalysisID AID); /// doInitialization - Run all of the initializers for the function passes. @@ -396,6 +398,7 @@ public: bool runOnModule(Module &M); /// Return true IFF AnalysisID AID is currently available. + /// TODO : Replace this method with getAnalysisPass() Pass *getAnalysisPassFromManager(AnalysisID AID); /// Pass Manager itself does not invalidate any analysis info. @@ -428,6 +431,7 @@ public: bool run(Module &M); /// Return true IFF AnalysisID AID is currently available. + /// TODO : Replace this method with getAnalysisPass() Pass *getAnalysisPassFromManager(AnalysisID AID); /// Pass Manager itself does not invalidate any analysis info. @@ -606,6 +610,7 @@ BasicBlockPassManager_New::runOnFunction(Function &F) { } /// Return true IFF AnalysisID AID is currently available. +/// TODO : Replace this method with getAnalysisPass() Pass * BasicBlockPassManager_New::getAnalysisPassFromManager(AnalysisID AID) { return getAnalysisPass(AID); } @@ -675,6 +680,8 @@ FunctionPassManagerImpl_New::addPass(Pass *P) { if (!activeBBPassManager || !activeBBPassManager->addPass(BP)) { + // TODO : intialize AvailableAnalysis info + activeBBPassManager = new BasicBlockPassManager_New(); addPassToManager(activeBBPassManager, false); if (!activeBBPassManager->addPass(BP)) @@ -693,6 +700,7 @@ FunctionPassManagerImpl_New::addPass(Pass *P) { return false; addPassToManager (FP); + // TODO : intialize AvailableAnalysis info activeBBPassManager = NULL; return true; } @@ -742,6 +750,7 @@ bool FunctionPassManagerImpl_New::runOnFunction(Function &F) { /// Return true IFF AnalysisID AID is currently available. +/// TODO : Replace this method with getAnalysisPass() Pass *FunctionPassManagerImpl_New::getAnalysisPassFromManager(AnalysisID AID) { Pass *P = getAnalysisPass(AID); @@ -797,11 +806,12 @@ ModulePassManager_New::addPass(Pass *P) { // If P is FunctionPass then use function pass maanager. if (FunctionPass *FP = dynamic_cast<FunctionPass*>(P)) { - activeFunctionPassManager = NULL; - if (!activeFunctionPassManager || !activeFunctionPassManager->addPass(P)) { + // TODO : intialize AvailableAnalysis info + activeFunctionPassManager = NULL; + activeFunctionPassManager = new FunctionPassManagerImpl_New(); addPassToManager(activeFunctionPassManager, false); if (!activeFunctionPassManager->addPass(FP)) @@ -820,6 +830,7 @@ ModulePassManager_New::addPass(Pass *P) { return false; addPassToManager(MP); + // TODO : intialize AvailableAnalysis info activeFunctionPassManager = NULL; return true; } @@ -847,9 +858,9 @@ ModulePassManager_New::runOnModule(Module &M) { } /// Return true IFF AnalysisID AID is currently available. +/// TODO : Replace this method with getAnalysisPass() Pass *ModulePassManager_New::getAnalysisPassFromManager(AnalysisID AID) { - Pass *P = getAnalysisPass(AID); if (P) return P; @@ -866,6 +877,7 @@ Pass *ModulePassManager_New::getAnalysisPassFromManager(AnalysisID AID) { // PassManagerImpl implementation /// Return true IFF AnalysisID AID is currently available. +/// TODO : Replace this method with getAnalysisPass() Pass *PassManagerImpl_New::getAnalysisPassFromManager(AnalysisID AID) { Pass *P = NULL; |