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

#include <PassDetail.h>

Inheritance diagram for mlir::detail::OpToOpPassAdaptor:
Inheritance graph
[legend]
Collaboration diagram for mlir::detail::OpToOpPassAdaptor:
Collaboration graph
[legend]

Public Member Functions

 OpToOpPassAdaptor (OpPassManager &&mgr)
 
void runOnOperation () override
 Run the held pipeline over all operations. More...
 
- Public Member Functions inherited from mlir::Pass
virtual ~Pass ()=default
 
const PassID * getPassID () const
 Returns the unique identifier that corresponds to this pass. More...
 
const PassInfo * lookupPassInfo () const
 Returns the pass info for this pass. More...
 
Optional< StringRef > getOpName () const
 
LogicalResult initializeOptions (StringRef options)
 Attempt to initialize the options of this pass from the given string. More...
 
void printAsTextualPipeline (raw_ostream &os)
 
ArrayRef< Statistic * > getStatistics () const
 Returns the main statistics for this pass instance. More...
 
MutableArrayRef< Statistic * > getStatistics ()
 
- Public Member Functions inherited from mlir::detail::OpToOpPassAdaptorBase
 OpToOpPassAdaptorBase (OpPassManager &&mgr)
 
 OpToOpPassAdaptorBase (const OpToOpPassAdaptorBase &rhs)=default
 
void mergeInto (OpToOpPassAdaptorBase &rhs)
 Merge the current pass adaptor into given 'rhs'. More...
 
MutableArrayRef< OpPassManager > getPassManagers ()
 Returns the pass managers held by this adaptor. More...
 
std::string getName ()
 Returns the adaptor pass name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from mlir::detail::PassModel< OpToOpPassAdaptor, OpPassBase< void > >
static bool classof (const Pass *pass)
 Support isa/dyn_cast functionality for the derived pass class. More...
 
- Static Public Member Functions inherited from mlir::OpPassBase< void >
static bool classof (const Pass *pass)
 Support isa/dyn_cast functionality. More...
 
- Static Public Member Functions inherited from mlir::Pass
static const PassInfo * lookupPassInfo (const PassID *passID)
 Returns the pass info for the specified pass class or null if unknown. More...
 
template<typename PassT >
static const PassInfo * lookupPassInfo ()
 
- Protected Member Functions inherited from mlir::OperationPass< OpToOpPassAdaptor >
 OperationPass ()
 
void getOperation ()
 Return the current operation being transformed. More...
 
- Protected Member Functions inherited from mlir::detail::PassModel< OpToOpPassAdaptor, OpPassBase< void > >
 PassModel (Optional< StringRef > opName=llvm::None)
 
void signalPassFailure ()
 
AnalysisT & getAnalysis ()
 Query an analysis for the current ir unit. More...
 
Optional< std::reference_wrapper< AnalysisT > > getCachedAnalysis ()
 
void markAllAnalysesPreserved ()
 Mark all analyses as preserved. More...
 
void markAnalysesPreserved ()
 Mark the provided analyses as preserved. More...
 
void markAnalysesPreserved (const AnalysisID *id)
 
StringRef getName () override
 Returns the derived pass name. More...
 
std::unique_ptr< Pass > clone () const override
 A clone method to create a copy of this pass. More...
 
Optional< std::reference_wrapper< AnalysisT > > getCachedParentAnalysis (Operation *parent)
 Returns the analysis for the parent operation if it exists. More...
 
Optional< std::reference_wrapper< AnalysisT > > getCachedParentAnalysis ()
 
Optional< std::reference_wrapper< AnalysisT > > getCachedChildAnalysis (Operation *child)
 Returns the analysis for the given child operation if it exists. More...
 
AnalysisT & getChildAnalysis (Operation *child)
 
- Protected Member Functions inherited from mlir::Pass
 Pass (const PassID *passID, Optional< StringRef > opName=llvm::None)
 
detail::PassExecutionState & getPassState ()
 Returns the current pass state. More...
 
MLIRContext & getContext ()
 Return the MLIR context for the current function being transformed. More...
 
Operation * getOperation ()
 Return the current operation being transformed. More...
 
AnalysisManager getAnalysisManager ()
 Returns the current analysis manager. More...
 
void copyOptionValuesFrom (const Pass *other)
 
- Protected Attributes inherited from mlir::detail::OpToOpPassAdaptorBase
SmallVector< OpPassManager, 1 > mgrs
 

Detailed Description

An adaptor pass used to run operation passes over nested operations synchronously on a single thread.

Constructor & Destructor Documentation

◆ OpToOpPassAdaptor()

OpToOpPassAdaptor::OpToOpPassAdaptor ( OpPassManager &&  mgr)

Member Function Documentation

◆ runOnOperation()

void OpToOpPassAdaptor::runOnOperation ( )
overridevirtual

Run the held pipeline over all operations.

Run the held pipeline over all nested operations.

Implements mlir::Pass.


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