[all-commits] [llvm/llvm-project] 5e6c17: [mlir][linalg] Fix bufferize pattern to allow unkn...

Stephan Herhut via All-commits all-commits at lists.llvm.org
Fri Sep 10 04:38:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e6c170b3f41f4da3888a0c4e09eb6af06d7d2c9
      https://github.com/llvm/llvm-project/commit/5e6c170b3f41f4da3888a0c4e09eb6af06d7d2c9
  Author: Stephan Herhut <herhut at google.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
    M mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp
    M mlir/test/Dialect/Linalg/bufferize.mlir

  Log Message:
  -----------
  [mlir][linalg] Fix bufferize pattern to allow unknown operations in body of generic

The original version of the bufferization pattern for linalg.generic would
manually clone operations within the region to the bufferized clone of the
operation. This triggers legality requirements on those operations in the
conversion infra. Instead, this now uses the rewriter to inline the region
instead, avoiding those legality requirements.

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




More information about the All-commits mailing list