MLIR
20.0.0git
|
Base class for additional data owned by the Transform dialect. More...
#include "mlir/Dialect/Transform/IR/TransformDialect.h"
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... | |
MLIRContext * | getContext () 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... | |
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.
|
inlineprotected |
Forward the TypeID of the derived class to the base.
Definition at line 65 of file TransformDialect.h.