[all-commits] [llvm/llvm-project] b6ae3f: [mlir][tensor][bufferize] Implement getBufferType ...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Feb 1 05:24:35 PST 2023


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

  Changed paths:
    M mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/SCF/one-shot-bufferize.mlir
    M mlir/test/Dialect/Tensor/bufferize.mlir
    M mlir/test/Dialect/Tensor/one-shot-bufferize.mlir

  Log Message:
  -----------
  [mlir][tensor][bufferize] Implement getBufferType for CastOp

This interface method is used to compute the buffer type of a value during bufferization. It was missing. This is interface method is used during loop bufferization.

Also fix a bug where a cast from an unranked tensor to a ranked tensor type did not always apply a fully dynamic layout map on the result memref.

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




More information about the All-commits mailing list