File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
mlir/include/mlir/Dialect/Vector/IR Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2850,6 +2850,8 @@ def Vector_SplatOp : Vector_Op<"splat", [
2850
2850
]> {
2851
2851
let summary = "vector splat or broadcast operation";
2852
2852
let description = [{
2853
+ Note: This operation is deprecated. Please use vector.broadcast.
2854
+
2853
2855
Broadcast the operand to all elements of the result vector. The type of the
2854
2856
operand must match the element type of the vector type.
2855
2857
@@ -2859,6 +2861,13 @@ def Vector_SplatOp : Vector_Op<"splat", [
2859
2861
%s = arith.constant 10.1 : f32
2860
2862
%t = vector.splat %s : vector<8x16xf32>
2861
2863
```
2864
+
2865
+ This operation is deprecated, the preferred representation of the above is:
2866
+
2867
+ ```mlir
2868
+ %s = arith.constant 10.1 : f32
2869
+ %t = vector.broadcast %s : f32 to vector<8x16xf32>
2870
+ ```
2862
2871
}];
2863
2872
2864
2873
let arguments = (ins AnyType:$input);
You can’t perform that action at this time.
0 commit comments