MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::HasDefaultDLTIDataLayout< ConcreteOp > Class Template Reference

Trait to be used by operations willing to use the implementation of the data layout interfaces provided by the Target dialect. More...

#include "mlir/Dialect/DLTI/Traits.h"

+ Inheritance diagram for mlir::HasDefaultDLTIDataLayout< ConcreteOp >:

Public Member Functions

DataLayoutSpecInterface getDataLayoutSpec ()
 Returns the data layout specification as provided by the Target dialect specification attribute. More...
 

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 Verifies that the operation to which this trait is attached is valid for the trait, i.e., that it implements the data layout operation interface. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteOp, HasDefaultDLTIDataLayout >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 

Detailed Description

template<typename ConcreteOp>
class mlir::HasDefaultDLTIDataLayout< ConcreteOp >

Trait to be used by operations willing to use the implementation of the data layout interfaces provided by the Target dialect.

Definition at line 26 of file Traits.h.

Member Function Documentation

◆ getDataLayoutSpec()

template<typename ConcreteOp >
DataLayoutSpecInterface mlir::HasDefaultDLTIDataLayout< ConcreteOp >::getDataLayoutSpec ( )
inline

Returns the data layout specification as provided by the Target dialect specification attribute.

Definition at line 37 of file Traits.h.

References mlir::impl::getDataLayoutSpec(), and mlir::OpTrait::TraitBase< ConcreteOp, HasDefaultDLTIDataLayout >::getOperation().

◆ verifyTrait()

template<typename ConcreteOp >
static LogicalResult mlir::HasDefaultDLTIDataLayout< ConcreteOp >::verifyTrait ( Operation op)
inlinestatic

Verifies that the operation to which this trait is attached is valid for the trait, i.e., that it implements the data layout operation interface.

Definition at line 31 of file Traits.h.


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