MLIR
20.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. More... | |
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:
Elementwise
op. Definition at line 1400 of file OpDefinition.h.
|
inlinestatic |
Definition at line 1401 of file OpDefinition.h.
References mlir::OpTrait::impl::verifyElementwise().