[clang] [clang][SYCL] Implement address space attributes for SYCL (PR #200849)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 15 23:21:40 PDT 2026
================
@@ -2,6 +2,12 @@
// RUN: %clang_cc1 -O1 -triple spirv64 -verify %s -cl-std=CL3.0 -x cl -o -
// RUN: %clang_cc1 -O1 -triple spirv32 -verify %s -cl-std=CL3.0 -x cl -o -
+#ifdef __SYCL_DEVICE_ONLY__
+#define LOCALAS [[clang::sycl_local]]
+#else
+#define LOCALAS __attribute__((opencl_local))
+#endif
+
----------------
tahonermann wrote:
I don't think the changes to this file are needed; the file is only compiled as OpenCL C.
https://github.com/llvm/llvm-project/pull/200849
More information about the cfe-commits
mailing list