llvm-project
f5177f1a - [Clang][OpenMP] Use default address space for task and globalized pointers (#248200)

Commit
3 days ago
[Clang][OpenMP] Use default address space for task and globalized pointers (#248200) The pointer to a task descriptor returned by __kmpc_omp_task_alloc, and the pointer to a variable globalized with __kmpc_alloc_shared, were cast to address space 0. This is fine for some targets (AMDGPU, NVPTX) but wrong for SPIR-V, where address space 0 is private memory and the default is address space 4. The patch switches to the default address space instead, which fixes SPIR-V and implies no change to the currently-working targets. I can't test this on hardware, but it resolves the SPIR-V compilation crash revealed by #245784/#247569. Assisted-By: Claude
Author
Parents
Loading