[mlir][linalg][bufferize] Support tensor.from_elements
authorMatthias Springer <springerm@google.com>
Tue, 25 Jan 2022 13:05:35 +0000 (22:05 +0900)
committerMatthias Springer <springerm@google.com>
Tue, 25 Jan 2022 13:19:59 +0000 (22:19 +0900)
commitd581c94d6bfbb336b8620ef06e4340b5ea18a23e
treedf233e6a0402c5f00320d1c8ee6ed7a9f0f6586e
parent71bbb78b8fdc72732e3c21ee6d37f3c3868a7fdc
[mlir][linalg][bufferize] Support tensor.from_elements

This is mostly a copy of the existing tensor.from_elements bufferization. Once TensorInterfaceImpl.cpp is moved to the tensor dialect, the existing rewrite pattern can be deleted.

Differential Revision: https://reviews.llvm.org/D117775
mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir