MLIR  20.0.0git
Protected Member Functions | List of all members
mlir::transform::TransformDialectData< DerivedTy > Class Template Reference

Base class for additional data owned by the Transform dialect. More...

#include "mlir/Dialect/Transform/IR/TransformDialect.h"

+ Inheritance diagram for mlir::transform::TransformDialectData< DerivedTy >:

Protected Member Functions

 TransformDialectData (MLIRContext *ctx)
 Forward the TypeID of the derived class to the base. More...
 
- Protected Member Functions inherited from mlir::transform::detail::TransformDialectDataBase
 TransformDialectDataBase (TypeID typeID, MLIRContext *ctx)
 Must be called by the subclass with the appropriate type ID. More...
 
MLIRContextgetContext () const
 Return the MLIR context. More...
 

Additional Inherited Members

- Public Member Functions inherited from mlir::transform::detail::TransformDialectDataBase
virtual ~TransformDialectDataBase ()=default
 
TypeID getTypeID () const
 Returns the dynamic type ID of the subclass. More...
 

Detailed Description

template<typename DerivedTy>
class mlir::transform::TransformDialectData< DerivedTy >

Base class for additional data owned by the Transform dialect.

Extensions may communicate with each other using this data. The data object is identified by the TypeID of the specific data subclass, querying the data of the same subclass returns a reference to the same object. When a Transform dialect extension is initialized, it can populate the data in the specific subclass. When a Transform op is applied, it can read (but not mutate) the data in the specific subclass, including the data provided by other extensions.

This follows CRTP: derived classes must list themselves as template argument.

Definition at line 62 of file TransformDialect.h.

Constructor & Destructor Documentation

◆ TransformDialectData()

template<typename DerivedTy >
mlir::transform::TransformDialectData< DerivedTy >::TransformDialectData ( MLIRContext ctx)
inlineprotected

Forward the TypeID of the derived class to the base.

Definition at line 65 of file TransformDialect.h.


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