[all-commits] [llvm/llvm-project] 3610c8: [mlir][bufferization] Enable BufferizationToMemRef...

Martin Erhart via All-commits all-commits at lists.llvm.org
Mon Aug 28 08:09:29 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3610c82ce398c8ed46cbeba3cfa0a0c0d100c02f
  Author: Martin Erhart <merhart at google.com>
  Date:   2023-08-28 (Mon, 28 Aug 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
    A mlir/test/Conversion/BufferizationToMemRef/bufferization-to-memref-func.mlir

  Log Message:
  [mlir][bufferization] Enable BufferizationToMemRef to run on functions

Modify the `convert-bufferization-to-memref` pass to be applicable to
`builtin.module` and `FunctionOpInterface`. In many cases the lowering using
the library function is not needed because enough static information is
available to simplify the dealloc operations enough to use the more
light-weight lowerings. In those situations, it is better to allow the pass to
run on functions for additional parallelization and for easier use with the
transform dialect (e.g., when the transform ops are in the same
`builtin.module` as the function to be transformed).

Reviewed By: springerm

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

More information about the All-commits mailing list