[Mlir-commits] [mlir] 26fee2b - [mlir] [linalg] Update documentation for fuse_into_containing_op

Harsh Menon llvmlistbot at llvm.org
Mon Jun 5 08:25:01 PDT 2023


Author: Harsh Menon
Date: 2023-06-05T08:24:32-07:00
New Revision: 26fee2b3cb71bfa2ff5a9decb9caa3d238df5b27

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

LOG: [mlir] [linalg] Update documentation for fuse_into_containing_op

This patch updates the docs for fuse_into_containing_op. It
updates the returned values to include the new_containing_op
and adds a brief description of the new_containing_op.

updates the docs with new changes in the
op regarding the return of the new_containing_op as well
as a brief description o

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

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 856eac88b36e9..65a2510a11bca 100644
--- a/mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
+++ b/mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
@@ -150,11 +150,12 @@ def FuseIntoContainingOp :
 
   let description = [{
     Fuses the `producer_op` into the `containing_op`.
-    Returns a handle to the fused ops.
+    Returns a handle to the fused ops and the `new_containing_op`.
 
     The producer is typically a slice of a tileable op (i.e., implements
     TilingInterface). In that case, this transform computes the accessed
-    producer slice inside of the containing op ("tile and fuse"). Otherwise,
+    producer slice inside of the containing op ("tile and fuse") and if required,
+    creates a new containing op with outputs from the fused producer. Otherwise,
     the entire producer is cloned inside the containing op ("clone and fuse").
 
     The containing op handle must be associated with exactly one payload op. The


        


More information about the Mlir-commits mailing list