MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::DataLayoutDialectInterface Class Reference

An interface to be implemented by dialects that can have identifiers in the data layout specification entries. More...

#include "mlir/Interfaces/DataLayoutInterfaces.h"

+ Inheritance diagram for mlir::DataLayoutDialectInterface:

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DataLayoutDialectInterface()

mlir::DataLayoutDialectInterface::DataLayoutDialectInterface ( Dialect dialect)
inline

Definition at line 152 of file DataLayoutInterfaces.h.

Member Function Documentation

◆ combine()

virtual DataLayoutEntryInterface mlir::DataLayoutDialectInterface::combine ( DataLayoutEntryInterface  outer,
DataLayoutEntryInterface  inner 
) const
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().

◆ defaultCombine()

static DataLayoutEntryInterface mlir::DataLayoutDialectInterface::defaultCombine ( DataLayoutEntryInterface  outer,
DataLayoutEntryInterface  inner 
)
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().

◆ verifyEntry() [1/2]

virtual LogicalResult mlir::DataLayoutDialectInterface::verifyEntry ( DataLayoutEntryInterface  entry,
Location  loc 
) const
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.

◆ verifyEntry() [2/2]

virtual LogicalResult mlir::DataLayoutDialectInterface::verifyEntry ( TargetDeviceSpecInterface  entry,
Location  loc 
) const
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.


The documentation for this class was generated from the following file: