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

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 24 13:04:28 PDT 2016

jlebar marked 2 inline comments as done.

Comment at: include/clang/Basic/LangOptions.def:175
@@ -174,2 +174,3 @@
 LANGOPT(CUDAAllowVariadicFunctions, 1, 0, "Allow variadic functions in CUDA device code")
+LANGOPT(CUDAHostDeviceConstexpr, 1, 1, "Treat unattributed constexpr functions as __host__ __device__")
rsmith wrote:
> This should be a noun phrase -- this string appears in contexts like "support for %0 is enabled" -- so this should be "treating unattributed [...]".
Thanks.  This is fixed in my patch queue, and I will push a change for the other ones as part of this patch queue.


More information about the cfe-commits mailing list