[all-commits] [llvm/llvm-project] bc882e: [mlir][linalg][transform] Add fuse_into_containing op

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Jul 22 04:58:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc882ed21fc7ae4ad934bf432c2431fa27cad556
      https://github.com/llvm/llvm-project/commit/bc882ed21fc7ae4ad934bf432c2431fa27cad556
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    A mlir/test/Dialect/Linalg/transform-op-fuse-into-containing.mlir

  Log Message:
  -----------
  [mlir][linalg][transform] Add fuse_into_containing op

This op fuses a given payload op into a given container op. Inside the container, all uses of the producer are replaced (fused) with the newly inserted op. If the producer is tileable and accessed via a tensor.extract_slice, the new op computes only the requested slice ("tile and fuse"). Otherwise, the entire tensor value is computed inside the container ("clone and fuse").

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


  Commit: 32c6e0815aa0691cb2044702b61caa895f4b316c
      https://github.com/llvm/llvm-project/commit/32c6e0815aa0691cb2044702b61caa895f4b316c
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    A mlir/test/Dialect/Linalg/transform-op-match.mlir

  Log Message:
  -----------
  [mlir][linalg] Add attribute matcher to structured.match transform op

This is useful for building small test cases and will be utilized in a subsequent commit that adds a fusion example.

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


  Commit: 0eb0dfb20b828d2017d1cfb0d7ad7f1b92f77c0f
      https://github.com/llvm/llvm-project/commit/0eb0dfb20b828d2017d1cfb0d7ad7f1b92f77c0f
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    A mlir/test/Dialect/Linalg/transform-tile-and-fuse.mlir

  Log Message:
  -----------
  [mlir][linalg] Add tile-and-fuse with transform dialect example

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


Compare: https://github.com/llvm/llvm-project/compare/934d60382673...0eb0dfb20b82


More information about the All-commits mailing list