This change adds memory space support during bufferization for tensor.from_elements, tensor.generate and tensor.pad.
Depends On D136063
Paths
| Differential D136064
[mlir][tensor][bufferize] Support memory_space on all tensor dialect ops Changes PlannedPublic Authored by springerm on Oct 17 2022, 3:19 AM.
Details
Summary This change adds memory space support during bufferization for tensor.from_elements, tensor.generate and tensor.pad. Depends On D136063
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 17 2022, 3:52 AM Comment Actions This needs some more iterations. In the mean time, D136265 adds memory support for tensor.pad (but not the other two ops).
Revision Contents
Diff 468146 mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/Tensor/one-shot-bufferize.mlir
|