[PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 15:18:39 PDT 2016


jlebar updated this revision to Diff 51479.
jlebar added a comment.

Switch to -fno-cuda-host-device-constexpr.  Only implicitly add the attributes
on functions which themselves lack host/device attributes.  Add more tests.


http://reviews.llvm.org/D18380

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/CC1Options.td
  lib/Frontend/CompilerInvocation.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaOverload.cpp
  test/SemaCUDA/function-overload.cu
  test/SemaCUDA/host-device-constexpr.cu
  test/SemaCUDA/no-host-device-constexpr.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18380.51479.patch
Type: text/x-patch
Size: 16012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160323/95e9e1b7/attachment.bin>


More information about the cfe-commits mailing list