[all-commits] [llvm/llvm-project] e7d0cc: [MLIR][Bufferization] Introduce `EmptyTensorToAllo...

lorenzo chelini via All-commits all-commits at lists.llvm.org
Mon Dec 19 00:12:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7d0cc76d7f03020429f4e15de79ddb6a3695aea
      https://github.com/llvm/llvm-project/commit/e7d0cc76d7f03020429f4e15de79ddb6a3695aea
  Author: Lorenzo Chelini <l.chelini at icloud.com>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/TransformOps/BufferizationTransformOps.h
    M mlir/include/mlir/Dialect/Bufferization/TransformOps/BufferizationTransformOps.td
    M mlir/lib/Dialect/Bufferization/TransformOps/BufferizationTransformOps.cpp
    M mlir/test/Dialect/Bufferization/Transforms/transform-ops.mlir

  Log Message:
  -----------
  [MLIR][Bufferization] Introduce `EmptyTensorToAllocTensorOp`

Introduce a new transform operation to replace `tensor.empty` with
`alloc_tensor` operations. The operation is a pass-through if the target
operation is already a `alloc_tensor`; otherwise, it expects a
`tensor.empty` as a target. Currently, it does not return any results.

The operation is expected to run before `one_shot_bufferize` as
`one_shot_bufferize` rejects `tensor.empty`.

Reviewed By: springerm

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




More information about the All-commits mailing list