MLIR  20.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...
 
TargetSystemSpecInterface getTargetSystemSpec ()
 Returns the target system description specification as provided by DLTI dialect. 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 27 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 38 of file Traits.h.

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

◆ getTargetSystemSpec()

template<typename ConcreteOp >
TargetSystemSpecInterface mlir::HasDefaultDLTIDataLayout< ConcreteOp >::getTargetSystemSpec ( )
inline

Returns the target system description specification as provided by DLTI dialect.

Definition at line 44 of file Traits.h.

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

◆ 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 32 of file Traits.h.


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