[all-commits] [llvm/llvm-project] c86f21: [mlir][Linalg] Allow comprehensive bufferization t...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Mon Oct 25 08:50:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c86f218fe4ca661a4348d20b66210324224870e8
      https://github.com/llvm/llvm-project/commit/c86f218fe4ca661a4348d20b66210324224870e8
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Passes.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/ComprehensiveBufferize.h
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
    A mlir/test/Dialect/Linalg/comprehensive-module-bufferize-alloca.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir][Linalg] Allow comprehensive bufferization to use callbacks for alloc/dealloc.

Using callbacks for allocation/deallocation allows users to override
the default.
Also add an option to comprehensive bufferization pass to use `alloca`
instead of `alloc`s. Note that this option is just for testing. The
option to use `alloca` does not work well with the option to allow for
returning memrefs.

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




More information about the All-commits mailing list