[all-commits] [llvm/llvm-project] 07c079: [mlir][bufferization] Add lowering of bufferizatio...

Martin Erhart via All-commits all-commits at lists.llvm.org
Wed Jul 19 07:29:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07c079a97adf7f028b63aeba9952c75d5f8da030
      https://github.com/llvm/llvm-project/commit/07c079a97adf7f028b63aeba9952c75d5f8da030
  Author: Martin Erhart <merhart at google.com>
  Date:   2023-07-19 (Wed, 19 Jul 2023)

  Changed paths:
    M mlir/include/mlir/Conversion/BufferizationToMemRef/BufferizationToMemRef.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/BufferizationToMemRef/BufferizationToMemRef.cpp
    M mlir/lib/Conversion/BufferizationToMemRef/CMakeLists.txt
    M mlir/test/Conversion/BufferizationToMemRef/bufferization-to-memref.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir][bufferization] Add lowering of bufferization.dealloc to memref.dealloc

Adds a generic lowering that suppors all cases of bufferization.dealloc
and one specialized, more efficient lowering for the simple case. Using
a helper function with for loops in the general case enables
O(|num_dealloc_memrefs|+|num_retain_memrefs|) size of the lowered code.

Depends on D155467

Reviewed By: springerm

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




More information about the All-commits mailing list