[clang] [clang][CodeGen] Add AS for Globals to SPIR & SPIRV datalayouts (PR #88455)

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 12 13:24:06 PDT 2024


bader wrote:

The change seems reasonable.

> CodeGen/LLVM will default to AS0 in this case, which produces Globals that end up in the private address space for e.g. OCL, HIPSPV or SYCL.

Can we add a test checking LLVM address space for globals emitted from OCL/HIPSPV/SYCL, please? It's surprising that we need to modify only a datalayout string check.

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


More information about the cfe-commits mailing list