MLIR
20.0.0git
|
This class represents a dialect extension anchored on the given set of dialects. More...
#include "mlir/IR/DialectRegistry.h"
Public Member Functions | |
virtual void | apply (MLIRContext *context, DialectsT *...dialects) const =0 |
Applies this extension to the given context and set of required dialects. More... | |
std::unique_ptr< DialectExtensionBase > | clone () const final |
Return a copy of this extension. More... | |
Public Member Functions inherited from mlir::DialectExtensionBase | |
virtual | ~DialectExtensionBase () |
ArrayRef< StringRef > | getRequiredDialects () const |
Return the dialects that our required by this extension to be loaded before applying. More... | |
Protected Member Functions | |
DialectExtension () | |
void | apply (MLIRContext *context, MutableArrayRef< Dialect * > dialects) const final |
Override the base apply method to allow providing the exact dialect types. More... | |
Protected Member Functions inherited from mlir::DialectExtensionBase | |
DialectExtensionBase (ArrayRef< StringRef > dialectNames) | |
Initialize the extension with a set of required dialects. More... | |
This class represents a dialect extension anchored on the given set of dialects.
When all of the specified dialects have been loaded, the application function of this extension will be executed.
Definition at line 74 of file DialectRegistry.h.
|
inlineprotected |
Definition at line 85 of file DialectRegistry.h.
|
pure virtual |
Applies this extension to the given context and set of required dialects.
Referenced by mlir::DialectExtension< DerivedT, DialectsT >::apply().
|
inlinefinalprotectedvirtual |
Override the base apply method to allow providing the exact dialect types.
Implements mlir::DialectExtensionBase.
Definition at line 90 of file DialectRegistry.h.
References mlir::DialectExtension< DerivedT, DialectsT >::apply().
|
inlinefinalvirtual |
Return a copy of this extension.
Implements mlir::DialectExtensionBase.
Definition at line 80 of file DialectRegistry.h.