MLIR
20.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. More... | |
Public Member Functions | |
virtual | ~DialectInterface () |
Dialect * | getDialect () const |
Return the dialect that this interface represents. More... | |
MLIRContext * | getContext () const |
Return the context that holds the parent dialect of this interface. More... | |
TypeID | getID () const |
Return the derived interface id. More... | |
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 126 of file Dialect.cpp.
References mlir::Dialect::getContext().
|
inline |
Return the dialect that this interface represents.
Definition at line 52 of file DialectInterface.h.
|
inline |
Return the derived interface id.
Definition at line 58 of file DialectInterface.h.