Skip to content

[SYCL] Hide new builtin definitions behind preview option #11774

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

Conversation

steffenlarsen
Copy link
Contributor

The recently added builtin definitions were not part of the breaking release, so to avoid API breaking changes for the next minor release this patch reintroduces the old definition of builtins and hides the new definitions behind the -fpreview-breaking-changes compiler option.

The recently added builtin definitions were not part of the breaking
release, so to avoid API breaking changes for the next minor release
this patch reintroduces the old definition of builtins and hides the new
definitions behind the -fpreview-breaking-changes compiler option.

Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Comment on lines +216 to +218
template <typename T>
using is_geninteger = std::bool_constant<is_geninteger_v<T>>;

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is_geninteger*bit_v passes the templated type onto is_gen_based_on_type_sizeof.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen marked this pull request as ready for review November 14, 2023 16:55
@steffenlarsen steffenlarsen requested a review from a team as a code owner November 14, 2023 16:55
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen merged commit a2f0221 into intel:sycl Nov 16, 2023
@JackAKirk JackAKirk mentioned this pull request Jan 8, 2024
7 tasks
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Jan 8, 2024
The recently added builtin definitions were not part of the breaking
release, so to avoid API breaking changes for the next minor release
this patch reintroduces the old definition of builtins and hides the new
definitions behind the -fpreview-breaking-changes compiler option.

---------

Signed-off-by: Larsen, Steffen <[email protected]>
(cherry picked from commit a2f0221)
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