MLIR
20.0.0git
|
An interface to be implemented by dialects that can have identifiers in the data layout specification entries. More...
#include "mlir/Interfaces/DataLayoutInterfaces.h"
Public Member Functions | |
DataLayoutDialectInterface (Dialect *dialect) | |
virtual LogicalResult | verifyEntry (DataLayoutEntryInterface entry, Location loc) const |
Checks whether the given data layout entry is valid and reports any errors at the provided location. More... | |
virtual LogicalResult | verifyEntry (TargetDeviceSpecInterface entry, Location loc) const |
Checks whether the given data layout entry is valid and reports any errors at the provided location. More... | |
virtual DataLayoutEntryInterface | combine (DataLayoutEntryInterface outer, DataLayoutEntryInterface inner) const |
Combines two entries with identifiers that belong to this dialect. More... | |
Static Public Member Functions | |
static DataLayoutEntryInterface | defaultCombine (DataLayoutEntryInterface outer, DataLayoutEntryInterface inner) |
Default implementation of entry combination that combines identical entries and returns null otherwise. More... | |
Static Public Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
static TypeID | getInterfaceID () |
Get a unique id for the derived interface type. More... | |
Additional Inherited Members | |
Public Types inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
using | Base = DialectInterfaceBase< ConcreteType, BaseT > |
Protected Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
DialectInterfaceBase (Dialect *dialect) | |
An interface to be implemented by dialects that can have identifiers in the data layout specification entries.
Provides hooks for verifying the entry validity and combining two entries.
Definition at line 149 of file DataLayoutInterfaces.h.
|
inline |
Definition at line 152 of file DataLayoutInterfaces.h.
|
inlinevirtual |
Combines two entries with identifiers that belong to this dialect.
Returns the combined entry or null if the entries are not compatible. Derived classes likely need to reimplement this.
Definition at line 182 of file DataLayoutInterfaces.h.
References defaultCombine().
|
inlinestatic |
Default implementation of entry combination that combines identical entries and returns null otherwise.
Definition at line 171 of file DataLayoutInterfaces.h.
Referenced by combine(), and combineOneSpec().
|
inlinevirtual |
Checks whether the given data layout entry is valid and reports any errors at the provided location.
Derived classes should override this.
Definition at line 156 of file DataLayoutInterfaces.h.
|
inlinevirtual |
Checks whether the given data layout entry is valid and reports any errors at the provided location.
Derived classes should override this.
Definition at line 163 of file DataLayoutInterfaces.h.