mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 14:50:30 +00:00
Pass Managers themselves do not invalidate any analysis info.
llvm-svn: 32318
This commit is contained in:
parent
8c988e1dc2
commit
318adc0e9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user