|
MLIR 22.0.0git
|
This class represents an interface overridden for a single dialect. More...
#include "mlir/IR/DialectInterface.h"
Public Types | |
| template<typename ConcreteType> | |
| using | Base = detail::DialectInterfaceBase<ConcreteType, DialectInterface> |
| The base class used for all derived interface types. | |
Public Member Functions | |
| virtual | ~DialectInterface () |
| Dialect * | getDialect () const |
| Return the dialect that this interface represents. | |
| MLIRContext * | getContext () const |
| Return the context that holds the parent dialect of this interface. | |
| TypeID | getID () const |
| Return the derived interface id. | |
Protected Member Functions | |
| DialectInterface (Dialect *dialect, TypeID id) | |
This class represents an interface overridden for a single dialect.
Definition at line 42 of file DialectInterface.h.
| using mlir::DialectInterface::Base = detail::DialectInterfaceBase<ConcreteType, DialectInterface> |
The base class used for all derived interface types.
This class provides utilities necessary for registration.
Definition at line 49 of file DialectInterface.h.
|
virtualdefault |
Definition at line 61 of file DialectInterface.h.
| MLIRContext * DialectInterface::getContext | ( | ) | const |
Return the context that holds the parent dialect of this interface.
Definition at line 117 of file Dialect.cpp.
Referenced by mlir::LLVMImportInterface::initializeImport().
|
inline |
Return the dialect that this interface represents.
Definition at line 52 of file DialectInterface.h.
Referenced by mlir::LLVMImportInterface::initializeImport(), mlir::OpAsmDialectInterface::parseResource(), mlir::detail::Parser::parseResourceHandle(), mlir::BytecodeDialectInterface::readAttribute(), and mlir::BytecodeDialectInterface::readType().
|
inline |
Return the derived interface id.
Definition at line 58 of file DialectInterface.h.