aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex Voicu <alexandru.voicu@amd.com>2024-09-26 14:06:14 +0100
committerGitHub <noreply@github.com>2024-09-26 14:06:14 +0100
commite13cbaca6925629165e3cced90b33777f0fe09fe (patch)
tree61fa344595fc650ebb6df07ef56bd7e42a794e81 /flang/lib/Frontend/CompilerInvocation.cpp
parent9e65dcac660723a06039c7e9b30f305b9b8ca652 (diff)
downloadllvm-e13cbaca6925629165e3cced90b33777f0fe09fe.zip
llvm-e13cbaca6925629165e3cced90b33777f0fe09fe.tar.gz
llvm-e13cbaca6925629165e3cced90b33777f0fe09fe.tar.bz2
[clang][CodeGen][SPIR-V] Fix incorrect SYCL usage, implement missing interface (#109415)
This is primarily meant to address the issue identified in #109182, around incorrect usage of `-fsycl-is-device`; we now have AMDGCN flavoured SPIR-V which retains the desired behaviour around the default AS and does not depend on the SYCL language being enabled to do so. Overall, there are three changes: 1. We unconditionally use the `SPIRDefIsGen` AS map for AMDGCNSPIRV target, as there is no case where the hack of setting default to private would be desirable, and it can be used for languages other than OCL/HIP; 2. We implement `SPIRVTargetCodeGenInfo::getGlobalVarAddressSpace` for SPIR-V in general, because otherwise using it from languages other than HIP or OpenCL would yield 0, incorrectly; 3. We remove the incorrect usage of `-fsycl-is-device`.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions