aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorAlex Voicu <alexandru.voicu@amd.com>2024-04-16 13:37:29 +0300
committerGitHub <noreply@github.com>2024-04-16 11:37:29 +0100
commit1120d8e6f799121b611aa23bdc128e40cf9c6c58 (patch)
tree3cefd271326cee31b6c8825c0b656a655ca9adb7 /llvm/lib/Transforms/Utils/Local.cpp
parentc09384e2b419c7b4e4167e0d0295d9018cc6169c (diff)
downloadllvm-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