Skip to content

[Backport to 15] Integer dot product 4x8 packed translation#1654

Merged
MrSidims merged 1 commit intoKhronosGroup:llvm_release_150from
Quetzonarch:integer-dot-product-packed-150
Oct 17, 2022
Merged

[Backport to 15] Integer dot product 4x8 packed translation#1654
MrSidims merged 1 commit intoKhronosGroup:llvm_release_150from
Quetzonarch:integer-dot-product-packed-150

Conversation

@Quetzonarch
Copy link
Contributor

Backport of #1633 with adjustments for llvm_release_150

This proposed bugfix updates the integer dot translation to use the correct function names from the OpenCL extension specification for packed format with scalar integer arguments (i.e. dot_4x8packed or dot_acc_sat_4x8packed instead of dot or dot_acc_sat with scalar integer arguments) to translate them into proper OpCodes. This is a fix for incorrect function names introduced in #1174
Additionally removed unused variables from visitCallDot to clean up the code.
Link to OpenCL spec:
https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_Ext.html#cl_khr_integer_dot_product

Changed the integer dot translation to use the correct function names
(i.e. dot_4x8packed or dot_acc_sat_4x8packed) to translate them into
proper OpCodes. Additionally removed unused variables from visitCallDot
Copy link
Contributor

@MrSidims MrSidims left a comment

Choose a reason for hiding this comment

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

clang-tidy error with "IsAccSat can be const"
Yet #1633 was merged without such change and without such error. Hence merging this PR as is.

@MrSidims MrSidims merged commit ba262e6 into KhronosGroup:llvm_release_150 Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants