My Project
Public Member Functions | List of all members
mlir::detail::AnalysisMap Class Reference

#include <AnalysisManager.h>

Public Member Functions

 AnalysisMap (Operation *ir)
 
template<typename AnalysisT >
AnalysisT & getAnalysis (PassInstrumentor *pi)
 Get an analysis for the current IR unit, computing it if necessary. More...
 
template<typename AnalysisT >
Optional< std::reference_wrapper< AnalysisT > > getCachedAnalysis () const
 Get a cached analysis instance if one exists, otherwise return null. More...
 
Operation * getOperation () const
 Returns the operation that this analysis map represents. More...
 
void clear ()
 Clear any held analyses. More...
 
void invalidate (const PreservedAnalyses &pa)
 

Detailed Description

This class represents a cache of analyses for a single operation. All computation, caching, and invalidation of analyses takes place here.

Constructor & Destructor Documentation

◆ AnalysisMap()

mlir::detail::AnalysisMap::AnalysisMap ( Operation *  ir)
inlineexplicit

Member Function Documentation

◆ clear()

void mlir::detail::AnalysisMap::clear ( )
inline

Clear any held analyses.

◆ getAnalysis()

template<typename AnalysisT >
AnalysisT& mlir::detail::AnalysisMap::getAnalysis ( PassInstrumentor *  pi)
inline

Get an analysis for the current IR unit, computing it if necessary.

◆ getCachedAnalysis()

template<typename AnalysisT >
Optional<std::reference_wrapper<AnalysisT> > mlir::detail::AnalysisMap::getCachedAnalysis ( ) const
inline

Get a cached analysis instance if one exists, otherwise return null.

◆ getOperation()

Operation* mlir::detail::AnalysisMap::getOperation ( ) const
inline

Returns the operation that this analysis map represents.

◆ invalidate()

void mlir::detail::AnalysisMap::invalidate ( const PreservedAnalyses &  pa)
inline

Invalidate any cached analyses based upon the given set of preserved analyses.


The documentation for this class was generated from the following file: