[Mlir-commits] [mlir] ef64e59 - [mlir][vector][NFC] Update `vector.flat_transpose` description

Jakub Kuderski llvmlistbot at llvm.org
Sat Apr 29 15:35:14 PDT 2023


Author: Jakub Kuderski
Date: 2023-04-29T18:34:34-04:00
New Revision: ef64e5913b807c4bc03086b6329e3282973d2b06

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

LOG: [mlir][vector][NFC] Update `vector.flat_transpose` description

Change the example to match how this op is actually printed. Do not use
'smart quotes' in the description.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D149535

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 cf827ed5925aa..dec6addf72cc4 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
+++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
@@ -2587,7 +2587,7 @@ def Vector_FlatTransposeOp : Vector_Op<"flat_transpose", [Pure,
     into 'vector.flat_transpose' operations to bring the operations closer
     to the hardware ISA.
 
-    The ‘vector.flat_transpose’ op treats the 1-D input `matrix` as
+    The `vector.flat_transpose` op treats the 1-D input `matrix` as
     a 2-D matrix with <rows> rows and <columns> columns, and returns the
     transposed matrix in flattened form in 'res'.
 
@@ -2598,8 +2598,8 @@ def Vector_FlatTransposeOp : Vector_Op<"flat_transpose", [Pure,
     Example:
 
     ```mlir
-    %1 = vector.flat_transpose %0 { rows = 4: i32, columns = 4: i32 }
-       : (vector<16xf32>) -> vector<16xf32>
+    %1 = vector.flat_transpose %0 {columns = 4 : i32, rows = 4 : i32}
+       : vector<16xf32> -> vector<16xf32>
     ```
   }];
   let assemblyFormat = "$matrix attr-dict `:` type($matrix) `->` type($res)";


        


More information about the Mlir-commits mailing list