[Mlir-commits] [mlir] [mlir][vector] Update document for `vector.splat`(NFC) (PR #112363)
Longsheng Mou
llvmlistbot at llvm.org
Tue Oct 15 07:12:58 PDT 2024
https://github.com/CoTinker created https://github.com/llvm/llvm-project/pull/112363
This PR updates the document for `vector.splat`, specifying that the operand type must match the element type of the result.
>From ceb5aacac58cbc1e4e23d5402d8ae8ebaa02ba8d Mon Sep 17 00:00:00 2001
From: Longsheng Mou <longshengmou at gmail.com>
Date: Tue, 15 Oct 2024 22:04:05 +0800
Subject: [PATCH] [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.
---
mlir/include/mlir/Dialect/Vector/IR/VectorOps.td | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
index b0de7c11b9d436..a00f4682e67d4f 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
+++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
@@ -2807,8 +2807,8 @@ def Vector_SplatOp : Vector_Op<"splat", [
Example:
```mlir
- %s = arith.constant 10.1 : f32
- %t = vector.splat %s : vector<8x16xi32>
+ %s = arith.constant 1.0 : f32
+ %t = vector.splat %s : vector<8x16xf32>
```
}];
More information about the Mlir-commits
mailing list