This is necessary for a future patch which will make all constexpr
functions implicitly host+device. cmath may declare constexpr
functions, but these we do *not* want to be host+device. The forward
declares added in this patch prevent this (because the rule will be,
constexpr functions become implicitly host+device unless they're
preceeded by a decl with device).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
One nit. LGTM otherwise.
lib/Headers/__clang_cuda_math_forward_declares.h | ||
---|---|---|
1 ↗ | (On Diff #51988) | This should be updated. |