9 #ifndef MLIR_DIALECT_DLTI_TRAITS_H
10 #define MLIR_DIALECT_DLTI_TRAITS_H
16 class DataLayoutSpecAttr;
25 template <
typename ConcreteOp>
Trait to be used by operations willing to use the implementation of the data layout interfaces provid...
static LogicalResult verifyTrait(Operation *op)
Verifies that the operation to which this trait is attached is valid for the trait,...
DataLayoutSpecInterface getDataLayoutSpec()
Returns the data layout specification as provided by the Target dialect specification attribute.
Helper class for implementing traits.
Operation * getOperation()
Return the ultimate Operation being worked on.
Operation is the basic unit of execution within MLIR.
DataLayoutSpecInterface getDataLayoutSpec(Operation *op)
LogicalResult verifyHasDefaultDLTIDataLayoutTrait(Operation *op)
This header declares functions that assist transformations in the MemRef dialect.
This class represents an efficient way to signal success or failure.