|
MLIR 22.0.0git
|
This trait tags element-wise ops on vectors or tensors. More...
#include "mlir/IR/OpDefinition.h"
Static Public Member Functions | |
| static LogicalResult | verifyTrait (Operation *op) |
Additional Inherited Members | |
| Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, Elementwise > | |
| Operation * | getOperation () |
| Return the ultimate Operation being worked on. | |
This trait tags element-wise ops on vectors or tensors.
NOTE: Not all ops that are "elementwise" in some abstract sense satisfy this trait. In particular, broadcasting behavior is not allowed.
An Elementwise op must satisfy the following properties:
TODO: Avoid hardcoding vector/tensor, and generalize this trait to a new interface ElementwiseTypeInterface that describes the container types for which the operation is elementwise.
Rationale:
Definition at line 1412 of file OpDefinition.h.
|
inlinestatic |
Definition at line 1413 of file OpDefinition.h.