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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 15 10:50:39 PDT 2024


Author: Longsheng Mou
Date: 2024-10-16T01:50:36+08:00
New Revision: a24e8a7f8c4159b9605d2fd0a687ff06e0e36c5b

URL: https://github.com/llvm/llvm-project/commit/a24e8a7f8c4159b9605d2fd0a687ff06e0e36c5b
DIFF: https://github.com/llvm/llvm-project/commit/a24e8a7f8c4159b9605d2fd0a687ff06e0e36c5b.diff

LOG: [mlir][vector] Update document for `vector.splat`(NFC) (#112363)

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

Added: 
    

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

Removed: 
    


################################################################################
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