MLIR  19.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 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 128 of file DataLayoutInterfaces.h.

Constructor & Destructor Documentation

◆ DataLayoutDialectInterface()

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

Definition at line 131 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 154 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 143 of file DataLayoutInterfaces.h.

Referenced by combine(), and combineOneSpec().

◆ verifyEntry()

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 135 of file DataLayoutInterfaces.h.

References mlir::success().


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