[mlir][linalg] Convert tensor.from_elements to destination style
authorMatthias Springer <springerm@google.com>
Wed, 25 Jan 2023 08:07:59 +0000 (09:07 +0100)
committerMatthias Springer <springerm@google.com>
Wed, 25 Jan 2023 08:18:38 +0000 (09:18 +0100)
commit124fce09a24e7ca524cb47e3f1c6047fdfca739f
treeb3ceeb1b94abc9ae6621f4125ce1188169cdc7d8
parent7aa8a9f1abe2e0133febe015ac502737b06828f4
[mlir][linalg] Convert tensor.from_elements to destination style

This can be a pre-processing for bufferization and allows for more efficient lowerings without an alloc.

Differential Revision: https://reviews.llvm.org/D142206
mlir/lib/Dialect/Linalg/Transforms/ConvertToDestinationStyle.cpp
mlir/test/Dialect/Linalg/convert-to-destination-style.mlir