[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Thu Dec 7 13:59:05 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.50 -> 1.51
---
Log message:
Add TODOs
---
Diffs of the changes: (+15 -3)
PassManager.cpp | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.50 llvm/lib/VMCore/PassManager.cpp:1.51
--- llvm/lib/VMCore/PassManager.cpp:1.50 Thu Dec 7 15:44:12 2006
+++ llvm/lib/VMCore/PassManager.cpp Thu Dec 7 15:58:50 2006
@@ -313,6 +313,7 @@
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 @@
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 @@
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 @@
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 @@
}
/// 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 @@
if (!activeBBPassManager
|| !activeBBPassManager->addPass(BP)) {
+ // TODO : intialize AvailableAnalysis info
+
activeBBPassManager = new BasicBlockPassManager_New();
addPassToManager(activeBBPassManager, false);
if (!activeBBPassManager->addPass(BP))
@@ -693,6 +700,7 @@
return false;
addPassToManager (FP);
+ // TODO : intialize AvailableAnalysis info
activeBBPassManager = NULL;
return true;
}
@@ -742,6 +750,7 @@
/// 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 @@
// 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 @@
return false;
addPassToManager(MP);
+ // TODO : intialize AvailableAnalysis info
activeFunctionPassManager = NULL;
return true;
}
@@ -847,9 +858,9 @@
}
/// 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 @@
// 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;
More information about the llvm-commits
mailing list