This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Check for static shape before bare pointer conversion
ClosedPublic

Authored by chelini on Apr 5 2022, 5:24 AM.

Details

Summary

Originally in the returnOp conversion, the result type was changing to bare
pointer if the type was a memref. This is incorrect as conversion to bare
pointer can only be done if the memref has static shape, strides and offset.

Diff Detail

Event Timeline

chelini created this revision.Apr 5 2022, 5:24 AM
Herald added a project: Restricted Project. · View Herald Transcript
chelini requested review of this revision.Apr 5 2022, 5:24 AM
ftynse accepted this revision.Apr 5 2022, 8:49 AM

Thanks!

This revision is now accepted and ready to land.Apr 5 2022, 8:49 AM