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.
Depends On D117770
| Paths 
 |  Differential  D117775  
[mlir][linalg][bufferize] Support tensor.from_elements ClosedPublic Authored by springerm on Jan 20 2022, 5:00 AM. 
Details Summary 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. Depends On D117770 
Diff Detail 
 Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 21 others.  ·  View Herald TranscriptJan 20 2022, 5:00 AM springerm added a child revision: D117984: [mlir][tensor] Move BufferizableOpInterface impl to tensor dialect.Jan 23 2022, 7:38 AM Comment Actions Same discussion here as for https://reviews.llvm.org/D117770. This revision now requires changes to proceed.Jan 24 2022, 1:52 AM This revision is now accepted and ready to land.Jan 25 2022, 12:54 AM This revision was landed with ongoing or failed builds.Jan 25 2022, 5:21 AM Closed by commit rGd581c94d6bfb: [mlir][linalg][bufferize] Support tensor.from_elements (authored by springerm).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 402868 mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
 mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||