This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] `memref.cast` to SPIR-V conversion
ClosedPublic

Authored by Hardcode84 on Jul 25 2023, 10:25 AM.

Diff Detail

Event Timeline

Hardcode84 created this revision.Jul 25 2023, 10:25 AM
Herald added a reviewer: kuhar. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Hardcode84 requested review of this revision.Jul 25 2023, 10:25 AM
kuhar accepted this revision.Jul 25 2023, 4:16 PM
kuhar added inline comments.
mlir/lib/Conversion/MemRefToSPIRV/MemRefToSPIRV.cpp
283

I'd like to have a negative test, if possible

This revision is now accepted and ready to land.Jul 25 2023, 4:16 PM
Hardcode84 added inline comments.Jul 25 2023, 6:02 PM
mlir/lib/Conversion/MemRefToSPIRV/MemRefToSPIRV.cpp
283

There is a case for casting between static and dynamic shaped memrefs, which is not supported yet, but can be supported potentially. But other than that I'm not sure how to trigger this except by type converter misconfiguration.

negative tests

This revision was landed with ongoing or failed builds.Jul 26 2023, 4:20 AM
This revision was automatically updated to reflect the committed changes.