diff options
author | Alex Voicu <alexandru.voicu@amd.com> | 2024-04-16 13:37:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 11:37:29 +0100 |
commit | 1120d8e6f799121b611aa23bdc128e40cf9c6c58 (patch) | |
tree | 3cefd271326cee31b6c8825c0b656a655ca9adb7 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | c09384e2b419c7b4e4167e0d0295d9018cc6169c (diff) | |
download | llvm-1120d8e6f799121b611aa23bdc128e40cf9c6c58.zip llvm-1120d8e6f799121b611aa23bdc128e40cf9c6c58.tar.gz llvm-1120d8e6f799121b611aa23bdc128e40cf9c6c58.tar.bz2 |
[clang][CodeGen] Add AS for Globals to SPIR & SPIRV datalayouts (#88455)
Currently neither the SPIR nor the SPIRV targets specify the AS for
globals in their datalayout strings. This is problematic because
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.
This patch addresses it by completing the datalayout string.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions