[PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 22 15:08:29 PDT 2016
jlebar created this revision.
jlebar added a reviewer: tra.
jlebar added subscribers: rsmith, rnk, cfe-commits.
All constexpr functions are implicitly host+device, except for variadic
functions, which are not allowed on the device side.
As part of this change, we now allow you to overload a host+device
function with another function of the same signature but different
A side-effect is that we'd previously accept a decl that had __host__
__device__ plus an unannotated def -- there was no ambiguity, because
you couldn't override the decl with different attrs, but now there is
ambiguity. This causes us to reject some programs we previously
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5256 bytes
Desc: not available
More information about the cfe-commits