This is an archive of the discontinued LLVM Phabricator instance.

Add lowering of tensor.insert op.
Needs ReviewPublic

Authored by pashu123 on Dec 16 2021, 7:14 AM.

Details

Summary

The lowering of tensor.insert op has been added to the
tensor-bufferize pass.

Signed-off-by: Prashant Kumar <pk5561@gmail.com>

Diff Detail

Event Timeline

pashu123 created this revision.Dec 16 2021, 7:14 AM
pashu123 requested review of this revision.Dec 16 2021, 7:14 AM
silvas added inline comments.Dec 17 2021, 5:43 PM
mlir/lib/Dialect/Tensor/Transforms/Bufferize.cpp
67

due to the way these work, you need to create a copy of the bufferized input memref before storing to it.

67

and yes, that's thoroughly non-optimal... there's ongoing discussions re bufferization.

pashu123 added inline comments.Dec 19 2021, 10:26 AM
mlir/lib/Dialect/Tensor/Transforms/Bufferize.cpp
67

Is there any LLVM-discourse link for the discussion?