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

Longsheng Mou llvmlistbot at llvm.org
Tue Oct 15 08:26:18 PDT 2024


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

>From eda8aed7edcf2ffb029e8881942d7a9cac4fadb3 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
index b0de7c11b9d436..c02b16ea931706 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
+++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
@@ -2808,7 +2808,7 @@ def Vector_SplatOp : Vector_Op<"splat", [
 
     ```mlir
     %s = arith.constant 10.1 : f32
-    %t = vector.splat %s : vector<8x16xi32>
+    %t = vector.splat %s : vector<8x16xf32>
     ```
   }];
 



More information about the Mlir-commits mailing list