[all-commits] [llvm/llvm-project] e312fc: [mlir][Linalg] Add layout specification support to...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Tue Jul 13 03:22:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e312fc49ae1ec86999676edc9c02a4ac0bc39cec
      https://github.com/llvm/llvm-project/commit/e312fc49ae1ec86999676edc9c02a4ac0bc39cec
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td
    M mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
    M mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add layout specification support to bufferization.

Previously, linalg bufferization always had to be conservative at function boundaries and assume the most dynamic strided memref layout.
This revision introduce the mechanism to specify a  linalg.buffer_layout function argument attribute that carries an affine map used to set a less pessimistic layout.

Reviewed By: ThomasRaoux

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




More information about the All-commits mailing list