-
Notifications
You must be signed in to change notification settings - Fork 240
Implement SPV_INTEL_ternary_bitwise_function #3104
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
Implement SPV_INTEL_ternary_bitwise_function #3104
Conversation
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Do you have plans to implement it in SPIR-V backend?
@@ -118,7 +119,8 @@ enum InternalCapability { | |||
ICapabilityJointMatrixPackedInt4ComponentTypeINTEL = 6439, | |||
ICapabilityCacheControlsINTEL = 6441, | |||
ICapabilitySubgroupRequirementsINTEL = 6445, | |||
ICapabilityBindlessImagesINTEL = 6528 | |||
ICapabilityBindlessImagesINTEL = 6528, | |||
ICapabilityTernaryBitwiseFunctionINTEL = 6241 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the extension up-streamed to SPIR-V Headers? If so, lets use definitions from there.
I admit, I've fallen a little behind on the SPIR-V translator and constituent projects. Where do these live? 😄 |
@steffenlarsen here you are: https://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/SPIRV for the backend and https://github.com/KhronosGroup/SPIRV-Headers for the headers. Unified spirv headers is taken from the latter by default by the translator, so may be what you need to do, if definitions for the extension present there, is to update names and remove internal::. |
Signed-off-by: Larsen, Steffen <[email protected]>
Looks like the header changes have already been made in KhronosGroup/SPIRV-Headers#504 and my local testing just didn't reflect that. Should be addressed now! Edit: Looks like the SPIR-V headers tag need an update. Can I do that as part of this patch or does it have to be separate? |
You can to it in this PR. |
Signed-off-by: Larsen, Steffen <[email protected]>
SPIR-V backend implementation patch: llvm/llvm-project#134866 |
/backport llvm_release_200 |
Attempting to create backport to |
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
Success. Backport PR created: #3182 |
/backport llvm_release_190 |
/backport llvm_release_180 |
Attempting to create backport to |
/backport llvm_release_170 |
Backport to |
Attempting to create backport to |
Backport to |
Attempting to create backport to |
Backport to |
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
…sGroup#3104) This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
This commit implements support for bi-directional translation of the `BitwiseFunctionINTEL` operation added in https://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability. Signed-off-by: Larsen, Steffen <[email protected]>
This commit implements support for bi-directional translation of the
BitwiseFunctionINTEL
operation added inhttps://github.khronos.org/SPIRV-Registry/extensions/INTEL/SPV_INTEL_ternary_bitwise_function.html together with the corresponding capability.