================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to