This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Convert tensor.from_elements to destination style
ClosedPublic

Authored by springerm on Jan 20 2023, 5:54 AM.

Details

Summary

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

Depends On: D142205

Diff Detail

Event Timeline

springerm created this revision.Jan 20 2023, 5:54 AM
springerm requested review of this revision.Jan 20 2023, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2023, 5:54 AM
springerm retitled this revision from [mlir][tensor] Convert tensor.from_elements to destination style to [mlir][linalg] Convert tensor.from_elements to destination style.Jan 23 2023, 3:55 AM

This is very painful... Maybe we can just hold off on this until it is needed....

note the impl is mostly copied from tensor/transforms/bufferizableopinterfaceimpl.cpp. you can compare the code

mravishankar accepted this revision.Jan 24 2023, 10:20 AM
This revision is now accepted and ready to land.Jan 24 2023, 10:20 AM