MLIR  18.0.0git
Static Public Member Functions | List of all members
mlir::OpTrait::IsCommutative< ConcreteType > Class Template Reference

This class adds property that the operation is commutative. More...

#include "mlir/IR/OpDefinition.h"

+ Inheritance diagram for mlir::OpTrait::IsCommutative< ConcreteType >:

Static Public Member Functions

static LogicalResult foldTrait (Operation *op, ArrayRef< Attribute > operands, SmallVectorImpl< OpFoldResult > &results)
 

Additional Inherited Members

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

Detailed Description

template<typename ConcreteType>
class mlir::OpTrait::IsCommutative< ConcreteType >

This class adds property that the operation is commutative.

Definition at line 1138 of file OpDefinition.h.

Member Function Documentation

◆ foldTrait()

template<typename ConcreteType >
static LogicalResult mlir::OpTrait::IsCommutative< ConcreteType >::foldTrait ( Operation op,
ArrayRef< Attribute operands,
SmallVectorImpl< OpFoldResult > &  results 
)
inlinestatic

Definition at line 1140 of file OpDefinition.h.


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