Pass Managers themselves do not invalidate any analysis info.

llvm-svn: 32318
This commit is contained in:
Devang Patel 2006-12-07 19:57:52 +00:00
parent 8c988e1dc2
commit 318adc0e9d

View File

@ -269,6 +269,11 @@ public:
/// 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 @@ public:
/// 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 @@ public:
/// 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 @@ public:
/// 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