aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorHarald van Dijk <harald@gigawatt.nl>2023-03-30 02:18:52 +0100
committerHarald van Dijk <harald@gigawatt.nl>2023-03-30 02:18:52 +0100
commit6b868139458d258c1ed4c0279e8f4374556c1c1e (patch)
tree247c7222b63f8c8c1f7110201bd9e61e08daeb97 /llvm/lib/CodeGen/MachineScheduler.cpp
parent46a384dfbe11545b200611e471cb4242d1295589 (diff)
downloadllvm-6b868139458d258c1ed4c0279e8f4374556c1c1e.zip
llvm-6b868139458d258c1ed4c0279e8f4374556c1c1e.tar.gz
llvm-6b868139458d258c1ed4c0279e8f4374556c1c1e.tar.bz2
[SYCL] Always set NoUnwind attribute for SYCL.
Like CUDA and OpenCL, the SYCL specification says that throwing and catching exceptions in device functions is not supported, so this change extends the logic for adding the NoUnwind attribute to SYCL. The existing convergent.cpp test, which tests that the convergent attribute is added to functions by default, is renamed and reused to test that the nounwind attribute is added by default. This test now has -fexceptions added to it, which the driver adds by default as well. The obvious question here is why not simply change the driver to remove -fexceptions. This change follows the direction given by the TODO comment because removing -fexceptions would also disable the __EXCEPTIONS macro, which should reflect whether exceptions are enabled on the host, rather than on the device, to avoid conflicts in types shared between host and device. Reviewed By: bader Differential Revision: https://reviews.llvm.org/D147097
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions