Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIRV] Add support for SPV_KHR_bit_instructions #66215

Merged
merged 7 commits into from
Sep 22, 2023

Conversation

pmatos
Copy link
Contributor

@pmatos pmatos commented Sep 13, 2023

Draft version of patch to add support for SPV_KHR_bit_instructions.

Created revision so we can discuss how to proceed here.
SPV_KHR_bit_instructions (http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_bit_instructions.html),
adds support for instructions that we already support through
the Shader capability but without requiring the shader cap.

However we currently have no way to disable the shader cap afaiu.
On the other hand, SPV_KHR_bit_instructions was one of the
extensions @mpaszkowski listed that we need to implement.

So what does it mean at the moment the need to implement this?
Is it just the ability to issue the extension and capabilities
instructions without issuing the Shader capability? If so,
then I will need to add here a way to disable the Shader
capability. What do you think?

Previously https://reviews.llvm.org/D156661

@pmatos pmatos self-assigned this Sep 13, 2023
@pmatos pmatos marked this pull request as ready for review September 15, 2023 14:55
Draft version of patch to add support for SPV_KHR_bit_instructions.

Created revision so we can discuss how to proceed here.
SPV_KHR_bit_instructions (http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_bit_instructions.html),
adds support for instructions that we already support through
the Shader capability but without requiring the shader cap.

However we currently have no way to disable the shader cap afaiu.
On the other hand, SPV_KHR_bit_instructions was one of the
extensions @mpaszkowski listed that we need to implement.

So what does it mean at the moment the need to implement this?
Is it just the ability to issue the extension and capabilities
instructions without issuing the Shader capability? If so,
then I will need to add here a way to disable the Shader
capability. What do you think?

Differential Revision: https://reviews.llvm.org/D156661
@pmatos pmatos force-pushed the SPV_KHR_bit_instructions branch from 48fa660 to 7cfad02 Compare September 20, 2023 12:57
@github-actions
Copy link

github-actions bot commented Sep 22, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Contributor

@iliya-diyachkov iliya-diyachkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. (Please check a small issue in the option description)

llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp Outdated Show resolved Hide resolved
@pmatos
Copy link
Contributor Author

pmatos commented Sep 22, 2023

@iliya-diyachkov thanks for the time to review this.

@pmatos pmatos merged commit e7651e6 into llvm:main Sep 22, 2023
@pmatos pmatos deleted the SPV_KHR_bit_instructions branch September 22, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants