This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Lower memref with dynamic dimensions to runtime arrays
ClosedPublic

Authored by antiagainst on Apr 15 2020, 5:45 AM.

Details

Summary

memref types with dynamic dimensions do not have a compile-time
known size. They should be mapped to SPIR-V runtime array types.

Diff Detail

Event Timeline

antiagainst created this revision.Apr 15 2020, 5:45 AM
mravishankar accepted this revision.Apr 15 2020, 9:45 PM

This is great! Thanks Lei, The type conversion looks good, but its hard to see how this works without seeing how it works in practice without seeing it work with loads/stores.

mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
334–336

Nit: Good to avoid using auto here cause the type of the result is not obvious.

This revision is now accepted and ready to land.Apr 15 2020, 9:45 PM
antiagainst marked an inline comment as done.Apr 20 2020, 8:50 AM
This revision was automatically updated to reflect the committed changes.