This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRVToLLVM] Conversion of SPIR-V struct type without offset
ClosedPublic

Authored by georgemitenkov on Jul 8 2020, 9:13 AM.

Details

Summary

This patch introduces type conversion for SPIR-V structs. Since handling offset case requires thorough testing, it was left out (for the next patch). Hence, only structs with no offset are currently supported.

Diff Detail

Event Timeline

georgemitenkov created this revision.Jul 8 2020, 9:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2020, 9:13 AM
antiagainst requested changes to this revision.Jul 9 2020, 5:56 AM
antiagainst added inline comments.
mlir/test/Conversion/SPIRVToLLVM/spirv-types-to-llvm.mlir
41

Should this also be marked as not supported at the moment? We might lose information by just ignoring decorations. We can getMemberDecorations and make sure it's empty at the moment.

This revision now requires changes to proceed.Jul 9 2020, 5:56 AM
antiagainst accepted this revision.Jul 9 2020, 5:57 AM

Feel free to submit after fixing the above issue.

This revision is now accepted and ready to land.Jul 9 2020, 5:57 AM
georgemitenkov marked an inline comment as done.

Added a check if struct member decorations are empty. In this case conversion fails.

This revision was automatically updated to reflect the committed changes.