MLIR
21.0.0git
|
This trait tags Elementwise
operatons that can be systematically vectorized.
More...
#include "mlir/IR/OpDefinition.h"
Static Public Member Functions | |
static LogicalResult | verifyTrait (Operation *op) |
Additional Inherited Members | |
![]() | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
This trait tags Elementwise
operatons that can be systematically vectorized.
All scalar operands and results are then replaced by vectors with the respective element type. Semantically, this is the operation on multiple elements simultaneously. See also Tensorizable
.
Rationale: Provide the reverse to Scalarizable
which, when chained together, allows reasoning about the relationship between the tensor and vector case. Additionally, it permits reasoning about promoting scalars to vectors via broadcasting in cases like select_scalar_pred
below.
Definition at line 1460 of file OpDefinition.h.
|
inlinestatic |
Definition at line 1461 of file OpDefinition.h.