[PATCH] D18539: [CUDA] Add math forward declares.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 28 18:56:39 PDT 2016
jlebar created this revision.
jlebar added reviewers: rnk, rsmith, tra.
jlebar added a subscriber: cfe-commits.
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__).
http://reviews.llvm.org/D18539
Files:
lib/Headers/CMakeLists.txt
lib/Headers/__clang_cuda_math_forward_declares.h
lib/Headers/__clang_cuda_runtime_wrapper.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18539.51867.patch
Type: text/x-patch
Size: 8488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160329/85306f7b/attachment-0001.bin>
More information about the cfe-commits
mailing list