Skip to content

[Backport to 9] Integer dot product translation#1557

Merged
svenvh merged 1 commit intoKhronosGroup:llvm_release_90from
Quetzonarch:integer_dot_product_translation_fix_90
Aug 1, 2022
Merged

[Backport to 9] Integer dot product translation#1557
svenvh merged 1 commit intoKhronosGroup:llvm_release_90from
Quetzonarch:integer_dot_product_translation_fix_90

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 OCL20ToSPIRV 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_90 branch from ee1ccba to 81a6ed7 Compare July 29, 2022 08:40
@svenvh svenvh merged commit e3a20c2 into KhronosGroup:llvm_release_90 Aug 1, 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