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

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Mon Oct 25 12:43:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f572818b0629e3716ad1dc8a1de9ad8f9ce51bf
      https://github.com/llvm/llvm-project/commit/2f572818b0629e3716ad1dc8a1de9ad8f9ce51bf
  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.




More information about the All-commits mailing list