Skip to content

[libspirv] Implement SPIR-V vstore builtins via CLC #19142

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

Merged
merged 3 commits into from
Jun 30, 2025

Conversation

frasercrmck
Copy link
Contributor

These implementations were recently added upstream, and the OpenCL vstore builtins use them. Aligning ourselves with those implementations reduces the amount of almost identical code.

There are changes to the generated builtins, but they appear harmless, at least for native-cpu. It ultimately stems from the different implementations of the various relational functions used in the rounding-mode helpers. Some comparisons and branch targets have been inverted, for example.

These implementations were recently added upstream, and the OpenCL
vstore builtins use them. Aligning ourselves with those implementations
reduces the amount of almost identical code.

There are changes to the generated builtins, but they appear harmless,
at least for native-cpu. It ultimately stems from the different
implementations of the various relational functions used in the
rounding-mode helpers. Some comparisons and branch targets have been
inverted, for example.
@frasercrmck frasercrmck requested a review from wenju-he June 25, 2025 15:24
@frasercrmck frasercrmck requested a review from a team as a code owner June 25, 2025 15:24
@frasercrmck frasercrmck added the libclc libclc project related issues label Jun 25, 2025
Copy link
Contributor

@wenju-he wenju-he left a comment

Choose a reason for hiding this comment

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

LGTM

@frasercrmck
Copy link
Contributor Author

@intel/llvm-gatekeepers this is ready to merge, thanks.

@martygrant martygrant merged commit e5a13e9 into intel:sycl Jun 30, 2025
85 of 95 checks passed
@frasercrmck frasercrmck deleted the vstore-builtins branch June 30, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libclc libclc project related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants