[Mlir-commits] [mlir] 5a32014 - [mlir] update linalg transform ops docs

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Dec 1 03:53:42 PST 2023


Author: Oleksandr "Alex" Zinenko
Date: 2023-12-01T12:53:35+01:00
New Revision: 5a32014d82334c4c66c8cc7ae3ed2a489c07db07

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

LOG: [mlir] update linalg transform ops docs

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td b/mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
index fb660c646126632..002926ff965fd1d 100644
--- a/mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
+++ b/mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
@@ -1910,16 +1910,20 @@ def TileUsingForallOp :
     #### Example using `num_threads`
 
     ```
-    %0 = pdl_match @match_matmul in %arg1
+    %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
+       : (!transform.any_op) -> !transform.any_op
     %3:2 = transform.structured.tile_using_forall %0 num_threads [10, 20]
+       : (!transform.any_op) -> (!transform.any_op, !transform.any_op)
     ```
 
     #### Example using `tile_sizes`
 
     ```
-    %0 = pdl_match @match_matmul in %arg1
-    %sz = pdl_match @match_size_op in %arg1
+    %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
+       : (!transform.any_op) -> !transform.any_op
+    %sz = transform.structured.match ...
     %3:2 = transform.structured.tile_using_forall %0 tile_sizes [0, %sz, 20]
+       : (!transform.any_op, !transform.any_op) -> (!transform.any_op, !transform.any_op)
     ```
   }];
 


        


More information about the Mlir-commits mailing list