This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Implement getBufferType for ReshapeOp.
ClosedPublic

Authored by ingomueller-net on May 26 2023, 2:31 AM.

Details

Summary

This function should be implemented for ops that work in one-shot
bufferization.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 2:31 AM
ingomueller-net requested review of this revision.May 26 2023, 2:31 AM

Use getBufferType in bufferize and fix implementation.

springerm accepted this revision.May 26 2023, 2:41 AM
springerm added inline comments.
mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
1015

I think you can just write maybeSourceBufferType->getMemorySpace().

This revision is now accepted and ready to land.May 26 2023, 2:41 AM