[all-commits] [llvm/llvm-project] 01581e: [mlir][linalg] Add bufferize_to_allocation transfo...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Feb 15 06:23:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01581e28ad929c6f2b8b1c31828006f32b2180d1
      https://github.com/llvm/llvm-project/commit/01581e28ad929c6f2b8b1c31828006f32b2180d1
  Author: Matthias Springer <springerm at google.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/ConvertToDestinationStyle.cpp
    A mlir/test/Dialect/Linalg/transform-op-bufferize-to-allocation.mlir

  Log Message:
  -----------
  [mlir][linalg] Add bufferize_to_allocation transform op

This transform materializes a buffer allocation for a given tensor value. All uses of the original value are replaced with the allocation.

Certain non-DPS ops may have an optimized lowering path that bufferizes the entire defining op. Such optimization is added for `tensor.pad` as part of this change.

The resulting IR can be further bufferized with One-Shot Bufferize.

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




More information about the All-commits mailing list