MLIR
20.0.0git
|
A trait for operations that have an attribute specifying operand segments. More...
#include "mlir/IR/OpDefinition.h"
Static Public Member Functions | |
static StringRef | getOperandSegmentSizeAttr () |
static LogicalResult | verifyTrait (Operation *op) |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, AttrSizedOperandSegments > | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
A trait for operations that have an attribute specifying operand segments.
Certain operations can have multiple variadic operands and their size relationship is not always known statically. For such cases, we need a per-op-instance specification to divide the operands into logical groups or segments. This can be modeled by attributes. The attribute will be named as operandSegmentSizes
.
This trait verifies the attribute for specifying operand segments has the correct type (1D vector) and values (non-negative), etc.
Definition at line 1325 of file OpDefinition.h.
|
inlinestatic |
Definition at line 1328 of file OpDefinition.h.
Referenced by mlir::gpu::addAsyncDependency().
|
inlinestatic |
Definition at line 1330 of file OpDefinition.h.
References mlir::OpTrait::impl::verifyOperandSizeAttr().