MLIR
20.0.0git
|
This class adds property that the operation is idempotent. More...
#include "mlir/IR/OpDefinition.h"
Static Public Member Functions | |
static LogicalResult | verifyTrait (Operation *op) |
static OpFoldResult | foldTrait (Operation *op, ArrayRef< Attribute > operands) |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, IsIdempotent > | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
This class adds property that the operation is idempotent.
This means a unary to unary operation "f" that satisfies f(f(x)) = f(x), or a binary operation "g" that satisfies g(x, x) = x.
Definition at line 1174 of file OpDefinition.h.
|
inlinestatic |
Definition at line 1189 of file OpDefinition.h.
References mlir::OpTrait::impl::foldIdempotent().
|
inlinestatic |
Definition at line 1176 of file OpDefinition.h.
References mlir::op_definition_impl::hasTrait(), and mlir::OpTrait::impl::verifyIsIdempotent().