[PATCH] D29904: [OpenMP] Prevent emission of exception handling code when using OpenMP to offload to NVIDIA devices.
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 30 15:43:04 PDT 2017
gtbercea added inline comments.
================
Comment at: lib/Frontend/CompilerInvocation.cpp:2167-2172
+ // Set the flag to prevent the implementation from emitting device exception
+ // handling code for those requiring so.
+ if (Opts.OpenMPIsDevice && T.isNVPTX()) {
+ Opts.Exceptions = 0;
+ Opts.CXXExceptions = 0;
+ }
----------------
ABataev wrote:
> I'm not sure this is the right place for this code.
Alexey, any suggestion where this code should be moved to?
Repository:
rL LLVM
https://reviews.llvm.org/D29904
More information about the cfe-commits
mailing list