[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:41 PDT 2026
================
@@ -26,14 +26,16 @@
#define __SPIRV_convergent __attribute__((convergent))
#define __SPIRV_inline __attribute__((always_inline))
-#define __global __attribute__((opencl_global))
-#define __local __attribute__((opencl_local))
-#define __private __attribute__((opencl_private))
-#define __constant __attribute__((opencl_constant))
#ifdef __SYCL_DEVICE_ONLY__
----------------
tahonermann wrote:
I think the SYCL attributes are desired for both host and device compilation.
```suggestion
#ifdef SYCL_LANGUAGE_VERSION
```
https://github.com/llvm/llvm-project/pull/200849
More information about the cfe-commits
mailing list