LLVM 20.0.0git
|
AnalysisResolver - Simple interface used by Pass objects to pull all analysis information out of pass manager that is responsible to manage the pass. More...
#include "llvm/PassAnalysisSupport.h"
Public Member Functions | |
AnalysisResolver ()=delete | |
AnalysisResolver (PMDataManager &P) | |
PMDataManager & | getPMDataManager () |
Pass * | findImplPass (AnalysisID PI) |
Find pass that is implementing PI. | |
std::tuple< Pass *, bool > | findImplPass (Pass *P, AnalysisID PI, Function &F) |
Find pass that is implementing PI. Initialize pass for Function F. | |
void | addAnalysisImplsPair (AnalysisID PI, Pass *P) |
void | clearAnalysisImpls () |
Clear cache that is used to connect a pass to the analysis (PassInfo). | |
Pass * | getAnalysisIfAvailable (AnalysisID ID) const |
Return analysis result or null if it doesn't exist. | |
AnalysisResolver - Simple interface used by Pass objects to pull all analysis information out of pass manager that is responsible to manage the pass.
Definition at line 157 of file PassAnalysisSupport.h.
|
delete |
|
inlineexplicit |
Definition at line 160 of file PassAnalysisSupport.h.
|
inline |
Definition at line 179 of file PassAnalysisSupport.h.
References findImplPass(), and P.
Referenced by llvm::PMDataManager::initializeAnalysisImpl().
|
inline |
Clear cache that is used to connect a pass to the analysis (PassInfo).
Definition at line 187 of file PassAnalysisSupport.h.
Referenced by llvm::FPPassManager::cleanup().
|
inline |
Find pass that is implementing PI.
Definition at line 165 of file PassAnalysisSupport.h.
Referenced by addAnalysisImplsPair().
std::tuple< Pass *, bool > AnalysisResolver::findImplPass | ( | Pass * | P, |
AnalysisID | PI, | ||
Function & | F | ||
) |
Find pass that is implementing PI. Initialize pass for Function F.
Definition at line 1282 of file LegacyPassManager.cpp.
References F, llvm::PMDataManager::getOnTheFlyPass(), and P.
Pass * AnalysisResolver::getAnalysisIfAvailable | ( | AnalysisID | ID | ) | const |
Return analysis result or null if it doesn't exist.
Definition at line 1277 of file LegacyPassManager.cpp.
References llvm::PMDataManager::findAnalysisPass().
|
inline |
Definition at line 162 of file PassAnalysisSupport.h.
Referenced by llvm::PMTopLevelManager::setLastUser().