[all-commits] [llvm/llvm-project] ce4f99: [mlir][Linalg] Add comprehensive bufferization sup...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Thu May 27 05:51:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce4f99e7f272d481d0689c551d9818019992c841
      https://github.com/llvm/llvm-project/commit/ce4f99e7f272d481d0689c551d9818019992c841
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2021-05-27 (Thu, 27 May 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Passes.td
    M mlir/include/mlir/Interfaces/ViewLikeInterface.h
    M mlir/include/mlir/Interfaces/ViewLikeInterface.td
    M mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
    M mlir/lib/Interfaces/ViewLikeInterface.cpp
    M mlir/test/Dialect/Linalg/comprehensive-func-bufferize.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add comprehensive bufferization support for subtensor (5/n)

This revision refactors and simplifies the pattern detection logic: thanks to SSA value properties, we can actually look at all the uses of a given value and avoid having to pattern-match specific chains of operations.

A bufferization pattern for subtensor is added and specific inplaceability analysis is implemented for the simple case of subtensor. More advanced use cases will follow.

Differential revision: https://reviews.llvm.org/D102512




More information about the All-commits mailing list