LLVM: llvm::detail::AnalysisResultConcept< IRUnitT, InvalidatorT > Struct Template Reference (original) (raw)
Abstract concept of an analysis result. More...
#include "[llvm/IR/PassManagerInternal.h](PassManagerInternal%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| virtual | ~AnalysisResultConcept ()=default |
| virtual bool | invalidate (IRUnitT &IR, const PreservedAnalyses &PA, InvalidatorT &Inv)=0 |
| Method to try and mark a result as invalid. |
template<typename IRUnitT, typename InvalidatorT>
struct llvm::detail::AnalysisResultConcept< IRUnitT, InvalidatorT >
Abstract concept of an analysis result.
This concept is parameterized over the IR unit that this result pertains to.
Definition at line 121 of file PassManagerInternal.h.
template<typename IRUnitT, typename InvalidatorT>
◆ invalidate()
template<typename IRUnitT, typename InvalidatorT>
Method to try and mark a result as invalid.
When the outer analysis manager detects a change in some underlying unit of the IR, it will call this method on all of the results cached.
PA is a set of preserved analyses which can be used to avoid invalidation because the pass which changed the underlying IR took care to update or preserve the analysis result in some way.
Inv is typically a [AnalysisManager::Invalidator](classllvm%5F1%5F1AnalysisManager%5F1%5F1Invalidator.html "API to communicate dependencies between analyses during invalidation.") object that can be used by a particular analysis result to discover if other analyses results are also invalidated in the event that this result depends on them. See the documentation in the [AnalysisManager](classllvm%5F1%5F1AnalysisManager.html "A container for analyses that lazily runs them and caches their results.") for more details.
Returns
true if the result is indeed invalid (the default).
Implemented in llvm::detail::AnalysisResultModel< IRUnitT, PassT, ResultT, InvalidatorT, false >, and llvm::detail::AnalysisResultModel< IRUnitT, PassT, ResultT, InvalidatorT, true >.
The documentation for this struct was generated from the following file:
- include/llvm/IR/PassManagerInternal.h