Skip to content

Commit ceb5aac

Browse files
committed
[mlir][vector] Update document for vector.splat(NFC)
This PR updates the document for `vector.splat`, specifying that the operand type must match the element type of the result.
1 parent 11f625c commit ceb5aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Vector/IR/VectorOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,8 +2807,8 @@ def Vector_SplatOp : Vector_Op<"splat", [
28072807
Example:
28082808

28092809
```mlir
2810-
%s = arith.constant 10.1 : f32
2811-
%t = vector.splat %s : vector<8x16xi32>
2810+
%s = arith.constant 1.0 : f32
2811+
%t = vector.splat %s : vector<8x16xf32>
28122812
```
28132813
}];
28142814

0 commit comments

Comments
 (0)