[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Thu Dec 7 11:58:07 PST 2006
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.42 -> 1.43
---
Log message:
Pass Managers themselves do not invalidate any analysis info.
---
Diffs of the changes: (+22 -1)
PassManager.cpp | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletion(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.42 llvm/lib/VMCore/PassManager.cpp:1.43
--- llvm/lib/VMCore/PassManager.cpp:1.42 Thu Dec 7 13:54:15 2006
+++ llvm/lib/VMCore/PassManager.cpp Thu Dec 7 13:57:52 2006
@@ -269,6 +269,11 @@
/// Return true IFF AnalysisID AID is currently available.
Pass *getAnalysisPassFromManager(AnalysisID AID);
+ /// Pass Manager itself does not invalidate any analysis info.
+ void getAnalysisUsage(AnalysisUsage &Info) const {
+ Info.setPreservesAll();
+ }
+
private:
};
@@ -311,6 +316,12 @@
/// doFinalization - Run all of the initializers for the function passes.
///
bool doFinalization(Module &M);
+
+ /// Pass Manager itself does not invalidate any analysis info.
+ void getAnalysisUsage(AnalysisUsage &Info) const {
+ Info.setPreservesAll();
+ }
+
private:
// Active Pass Managers
BasicBlockPassManager_New *activeBBPassManager;
@@ -333,7 +344,12 @@
/// Return true IFF AnalysisID AID is currently available.
Pass *getAnalysisPassFromManager(AnalysisID AID);
-
+
+ /// Pass Manager itself does not invalidate any analysis info.
+ void getAnalysisUsage(AnalysisUsage &Info) const {
+ Info.setPreservesAll();
+ }
+
private:
// Active Pass Manager
FunctionPassManagerImpl_New *activeFunctionPassManager;
@@ -357,6 +373,11 @@
/// Return true IFF AnalysisID AID is currently available.
Pass *getAnalysisPassFromManager(AnalysisID AID);
+ /// Pass Manager itself does not invalidate any analysis info.
+ void getAnalysisUsage(AnalysisUsage &Info) const {
+ Info.setPreservesAll();
+ }
+
private:
/// Add a pass into a passmanager queue. This is used by schedulePasses
More information about the llvm-commits
mailing list