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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sycl/include/sycl/builtins.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,20 @@

#include <sycl/detail/defines_elementary.hpp>

#ifdef __INTEL_PREVIEW_BREAKING_CHANGES

// Include the generated builtins.
#include <sycl/builtins_marray_gen.hpp>
#include <sycl/builtins_scalar_gen.hpp>
#include <sycl/builtins_vector_gen.hpp>

#else // __INTEL_PREVIEW_BREAKING_CHANGES

#include <sycl/builtins_legacy_marray_vec.hpp>
#include <sycl/builtins_legacy_scalar.hpp>

#endif // __INTEL_PREVIEW_BREAKING_CHANGES

#ifdef __SYCL_DEVICE_ONLY__
extern "C" {

Expand Down
1,291 changes: 1,291 additions & 0 deletions sycl/include/sycl/builtins_legacy_marray_vec.hpp

Large diffs are not rendered by default.

Loading