Skip to content

Commit a2f0221

Browse files
[SYCL] Hide new builtin definitions behind preview option (#11774)
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]>
1 parent 5ef8df8 commit a2f0221

25 files changed

+2891
-163
lines changed

sycl/include/sycl/builtins.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010

1111
#include <sycl/detail/defines_elementary.hpp>
1212

13+
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
14+
1315
// Include the generated builtins.
1416
#include <sycl/builtins_marray_gen.hpp>
1517
#include <sycl/builtins_scalar_gen.hpp>
1618
#include <sycl/builtins_vector_gen.hpp>
1719

20+
#else // __INTEL_PREVIEW_BREAKING_CHANGES
21+
22+
#include <sycl/builtins_legacy_marray_vec.hpp>
23+
#include <sycl/builtins_legacy_scalar.hpp>
24+
25+
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
26+
1827
#ifdef __SYCL_DEVICE_ONLY__
1928
extern "C" {
2029

sycl/include/sycl/builtins_legacy_marray_vec.hpp

Lines changed: 1291 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)