[all-commits] [llvm/llvm-project] d27ab5: [mlir][Linalg] NFC: Refactor fusion on tensors to ...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Thu Apr 23 13:42:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d27ab5c2409b0223ffb6b7ebcb75cd1bde4ac231
      https://github.com/llvm/llvm-project/commit/d27ab5c2409b0223ffb6b7ebcb75cd1bde4ac231
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-04-23 (Thu, 23 Apr 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
    M mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp

  Log Message:
  -----------
  [mlir][Linalg] NFC: Refactor fusion on tensors to enable extending
it to fusing different kinds of linalg operations on tensors.

The implementation of fusion on tensor was initially planned for just
GenericOps (and maybe IndexedGenericOps). With addition of
linalg.tensor_reshape, and potentially other such non-structured ops,
refactor the existing implementation to allow easier specification of
fusion between different linalg operations on tensors.

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


  Commit: 542668d1e2060693279462b67d07756fe93f3eb9
      https://github.com/llvm/llvm-project/commit/542668d1e2060693279462b67d07756fe93f3eb9
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-04-23 (Thu, 23 Apr 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
    M mlir/include/mlir/Dialect/Linalg/Passes.h
    M mlir/include/mlir/IR/StandardTypes.h
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
    M mlir/lib/IR/StandardTypes.cpp
    M mlir/test/Dialect/Linalg/fusion-tensor.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add support for fusing linalg.tensor_reshape with
linalg.generic operations.

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


Compare: https://github.com/llvm/llvm-project/compare/0d9144a21eab...542668d1e206


More information about the All-commits mailing list