Skip to content

[Backport to 12] Integer dot product translation#1560

Merged
svenvh merged 1 commit intoKhronosGroup:llvm_release_120from
Quetzonarch:integer_dot_product_translation_fix_120
Jul 29, 2022
Merged

[Backport to 12] Integer dot product translation#1560
svenvh merged 1 commit intoKhronosGroup:llvm_release_120from
Quetzonarch:integer_dot_product_translation_fix_120

Conversation

@Quetzonarch
Copy link
Contributor

Backport of #1174

This proposed change is a fix for translation of IR from OCL-like source when dot function is called with integer arguments (ints or vectors of chars or shorts) to properly support cl_khr_integer_dot_product extension. Previously dot would always be translated to its version with floating point arguments. With this fix the call to dot function should be translated into a proper OpCode, based on the arguments used.

Contains slight adjustments in OCLToSPIRV to fit older version.

Fixed translation of IR from source when dot function is called with
integer arguments (ints, vectors of chars or shorts) to properly
support cl_khr_integer_dot_product extension. Previously dot would
always be translated to its version with floating point arguments.
@Quetzonarch Quetzonarch force-pushed the integer_dot_product_translation_fix_120 branch from 4b60013 to 857e8ab Compare July 29, 2022 08:44
@svenvh svenvh merged commit 1814d1f into KhronosGroup:llvm_release_120 Jul 29, 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