[clang] [clang][SYCL] Add SYCL spelling for AS attributes (PR #200849)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 12 18:11:18 PDT 2026


================
@@ -46,6 +44,8 @@ static const unsigned SPIRDefIsPrivMap[] = {
     0,  // sycl_global_host
     0,  // sycl_local
     0,  // sycl_private
+    0,  // sycl_generic
+    0,  // sycl_constant
----------------
tahonermann wrote:

I think the SYCL address spaces should map the same as the OpenCL ones for SPIR.

```suggestion
    1,  // sycl_global
    5,  // sycl_global_device
    6,  // sycl_global_host
    3,  // sycl_local
    0,  // sycl_private
    4,  // sycl_generic
    2,  // sycl_constant
```

https://github.com/llvm/llvm-project/pull/200849


More information about the cfe-commits mailing list