Page MenuHomePhabricator

[mlir][tensor][NFC] Rename linalg.init_tensor to tensor.empty

Authored by springerm on Oct 3 2022, 10:27 PM.



tensor.empty/linalg.init_tensor produces an uninititalized tensor that can be used as a destination operand for destination-style ops (ops that implement DestinationStyleOpInterface).

This change makes it possible to implement TilingInterface for non-destination-style ops without depending on the Linalg dialect.


Diff Detail

Event Timeline

springerm created this revision.Oct 3 2022, 10:27 PM
springerm requested review of this revision.Oct 3 2022, 10:27 PM
springerm updated this revision to Diff 464890.Oct 3 2022, 10:33 PM

add test case

Note: The assembly format of the op has changed so that it matches bufferization.alloc_tensor and memref.alloc. Apart from that, this change is NFC.

ftynse accepted this revision.Oct 4 2022, 12:55 AM
This revision is now accepted and ready to land.Oct 4 2022, 12:55 AM
This revision was landed with ongoing or failed builds.Oct 4 2022, 1:28 AM
This revision was automatically updated to reflect the committed changes.