This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add extensions implied by SPIR-V 1.6
ClosedPublic

Authored by kuhar on Dec 5 2022, 2:12 PM.

Details

Summary

This adds existing extensions as implied by SPIR-V 1.6.

Also clean up the surrounding code.

Fixes: https://github.com/llvm/llvm-project/issues/59348.

Diff Detail

Event Timeline

kuhar created this revision.Dec 5 2022, 2:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2022, 2:12 PM
kuhar requested review of this revision.Dec 5 2022, 2:12 PM
kuhar added a comment.Dec 5 2022, 2:13 PM

Not sure if there is some quick way to test this. @antiagainst ?

antiagainst requested changes to this revision.Dec 5 2022, 2:15 PM
antiagainst added inline comments.
mlir/lib/Dialect/SPIRV/IR/SPIRVEnums.cpp
54

Could you actually do this? It's simply listing these two extensions in the extension list in OpBase.td. :)

This revision now requires changes to proceed.Dec 5 2022, 2:15 PM

Not sure if there is some quick way to test this. @antiagainst ?

Not really.. We need to write ops depend on this effectively; that's not easy. It's fine to forgo for now.

kuhar updated this revision to Diff 480250.Dec 5 2022, 2:37 PM

Define two missing extensions

kuhar edited the summary of this revision. (Show Details)Dec 5 2022, 2:37 PM
kuhar marked an inline comment as done.
kuhar added inline comments.
mlir/lib/Dialect/SPIRV/IR/SPIRVEnums.cpp
54

Done

antiagainst accepted this revision.Dec 5 2022, 2:39 PM
This revision is now accepted and ready to land.Dec 5 2022, 2:39 PM
This revision was landed with ongoing or failed builds.Dec 5 2022, 2:41 PM
This revision was automatically updated to reflect the committed changes.
kuhar marked an inline comment as done.