MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::transform::FunctionalStyleTransformOpTrait< OpTy > Class Template Reference

Trait implementing the MemoryEffectOpInterface for operations that "consume" their operands and produce new results. More...

#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"

+ Inheritance diagram for mlir::transform::FunctionalStyleTransformOpTrait< OpTy >:

Public Member Functions

void getEffects (SmallVectorImpl< MemoryEffects::EffectInstance > &effects)
 This op "consumes" the operands by reading and freeing then, "produces" the results by allocating and writing it and reads/writes the payload IR in the process. More...
 

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 Checks that the op matches the expectations of this trait. More...
 

Additional Inherited Members

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

Detailed Description

template<typename OpTy>
class mlir::transform::FunctionalStyleTransformOpTrait< OpTy >

Trait implementing the MemoryEffectOpInterface for operations that "consume" their operands and produce new results.

Definition at line 1279 of file TransformInterfaces.h.

Member Function Documentation

◆ getEffects()

template<typename OpTy >
void mlir::transform::FunctionalStyleTransformOpTrait< OpTy >::getEffects ( SmallVectorImpl< MemoryEffects::EffectInstance > &  effects)
inline

This op "consumes" the operands by reading and freeing then, "produces" the results by allocating and writing it and reads/writes the payload IR in the process.

Definition at line 1285 of file TransformInterfaces.h.

References mlir::transform::consumesHandle(), mlir::OpTrait::TraitBase< OpTy, FunctionalStyleTransformOpTrait >::getOperation(), mlir::transform::modifiesPayload(), and mlir::transform::producesHandle().

◆ verifyTrait()

template<typename OpTy >
static LogicalResult mlir::transform::FunctionalStyleTransformOpTrait< OpTy >::verifyTrait ( Operation op)
inlinestatic

Checks that the op matches the expectations of this trait.

Definition at line 1292 of file TransformInterfaces.h.


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