[clang] [llvm] [clang][OpenMP][SPIR-V] Fix addrspace of globals and global constants (PR #134399)
Nick Sarnie via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 8 07:53:24 PDT 2025
================
@@ -37,8 +37,8 @@ static const unsigned SPIRDefIsPrivMap[] = {
0, // cuda_device
0, // cuda_constant
0, // cuda_shared
- // SYCL address space values for this map are dummy
- 0, // sycl_global
+ // Most SYCL address space values for this map are dummy
----------------
sarnex wrote:
Probably because for SYCL it doesn't use that map, it uses [this](https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/SPIR.h#L75) one because of [this](https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/SPIR.h#L214) logic.
https://github.com/llvm/llvm-project/pull/134399
More information about the cfe-commits
mailing list