class PreservedAnalyses::PreservedAnalysisChecker
Declaration
class PreservedAnalyses::PreservedAnalysisChecker { /* full declaration omitted */ };
Description
A checker object that makes it easy to query for whether an analysis or some set covering it is preserved.
Declared at: llvm/include/llvm/IR/PassManager.h:268
Method Overview
- public bool preserved()
- public template <typename AnalysisSetT>bool preservedSet()
- public bool preservedWhenStateless()
Methods
¶bool preserved()
bool preserved()
Description
Returns true if the checker's analysis was not abandoned and either - the analysis is explicitly preserved or - all analyses are preserved.
Declared at: llvm/include/llvm/IR/PassManager.h:285
¶template <typename AnalysisSetT>
bool preservedSet()
template <typename AnalysisSetT>
bool preservedSet()
Description
Returns true if the checker's analysis was not abandoned and either - \p AnalysisSetT is explicitly preserved or - all analyses are preserved.
Declared at: llvm/include/llvm/IR/PassManager.h:300
Templates
- AnalysisSetT
¶bool preservedWhenStateless()
bool preservedWhenStateless()
Description
Return true if the checker's analysis was not abandoned, i.e. it was not explicitly invalidated. Even if the analysis is not explicitly preserved, if the analysis is known stateless, then it is preserved.
Declared at: llvm/include/llvm/IR/PassManager.h:293