Skip to content

Conversation

@s-kanaev
Copy link
Contributor

No description provided.

@s-kanaev s-kanaev requested a review from a team as a code owner May 20, 2020 14:09
@s-kanaev s-kanaev requested review from bader and sergey-semenov May 20, 2020 14:09
@bader bader merged commit 781eb29 into intel:sycl May 20, 2020
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Nov 22, 2022
The reqd_work_group_size and work_group_size_hint metadata nodes are currently expected to have exactly 3 operands which are in turn translated to the 3 operands of their corresponding SPIR-V execution modes. This commit relaxes this requirement by allowing the metadata to have 1-3 operands, where the missing dimensions are padded with 1's in the corresponding execution mode. Note that the information about the dimensionality of the original metadata is lost after translation, so reverse translation will always result in the metadata having all three operands.

Motivation comes from intel#7450 where instead of doing the implicit padding during LLVM IR generation we want to simplify the metadata to only have the operands specified. Not only does it relax the requirements, it also lets us preserve information about dimensionality up until it is translated into SPIR-V.
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.

3 participants