[Mlir-commits] [mlir] [mlir][vector] Update document for `vector.splat`(NFC) (PR #112363)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 15 07:13:30 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Longsheng Mou (CoTinker)

<details>
<summary>Changes</summary>

This PR updates the document for `vector.splat`, specifying that the operand type must match the element type of the result.

---
Full diff: https://github.com/llvm/llvm-project/pull/112363.diff


1 Files Affected:

- (modified) mlir/include/mlir/Dialect/Vector/IR/VectorOps.td (+2-2) 


``````````diff
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>
     ```
   }];
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/112363


More information about the Mlir-commits mailing list