Neither OpenCL nor C++ for OpenCL support exceptions, so add the
nounwind attribute unconditionally for those languages.
Unblocks D138958.
Paths
| Differential D142033
[OpenCL] Always add nounwind attribute for OpenCL ClosedPublic Authored by svenvh on Jan 18 2023, 8:51 AM.
Details Summary Neither OpenCL nor C++ for OpenCL support exceptions, so add the Unblocks D138958.
Diff Detail
Event TimelineComment Actions Should we generalize and rename clang/test/CodeGenOpenCL/convergent.cl to validate function attributes other than convergent? It's not obvious that presence of nounwind attribute is validated by clang/test/CodeGenOpenCL/convergent.cl. This revision is now accepted and ready to land.Jan 18 2023, 9:27 AM Comment Actions
I think the main goal of clang/test/CodeGenOpenCL/convergent.cl remains testing convergent, so I'd rather not generalize this particular test. nounwind is somewhat coincidentally tested by various tests now, but we could add a separate test for generic attributes such as nounwind if you think it's worth doing so. This revision was landed with ongoing or failed builds.Jan 20 2023, 4:06 AM Closed by commit rG149521091499: [OpenCL] Always add nounwind attribute for OpenCL (authored by svenvh). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 490778 clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGenOpenCL/amdgpu-enqueue-kernel.cl
clang/test/CodeGenOpenCL/convergent.cl
|