struct AnalysisResultConcept
Declaration
template <typename IRUnitT,
typename PreservedAnalysesT,
typename InvalidatorT>
struct AnalysisResultConcept { /* full declaration omitted */ };
Description
Abstract concept of an analysis result. This concept is parameterized over the IR unit that this result pertains to.
Declared at: llvm/include/llvm/IR/PassManagerInternal.h:92
Templates
- IRUnitT
- PreservedAnalysesT
- InvalidatorT
Method Overview
- public virtual bool invalidate(IRUnitT & IR, const PreservedAnalysesT & PA, InvalidatorT & Inv)
- public virtual ~AnalysisResultConcept<IRUnitT, PreservedAnalysesT, InvalidatorT>()
Methods
¶virtual bool invalidate(
IRUnitT& IR,
const PreservedAnalysesT& PA,
InvalidatorT& Inv)
virtual bool invalidate(
IRUnitT& IR,
const PreservedAnalysesT& PA,
InvalidatorT& Inv)
Description
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. \p 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. \p Inv is typically a \c AnalysisManager::Invalidator 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 \c AnalysisManager for more details.
Declared at: llvm/include/llvm/IR/PassManagerInternal.h:110
Parameters
- IRUnitT& IR
- const PreservedAnalysesT& PA
- InvalidatorT& Inv
Returns
true if the result is indeed invalid (the default).
¶virtual ~AnalysisResultConcept<IRUnitT,
PreservedAnalysesT,
InvalidatorT>()
virtual ~AnalysisResultConcept<IRUnitT,
PreservedAnalysesT,
InvalidatorT>()
Declared at: llvm/include/llvm/IR/PassManagerInternal.h:93