[CUDA] Add math forward declares to CUDA header wrapper.
authorJustin Lebar <jlebar@google.com>
Wed, 30 Mar 2016 23:30:14 +0000 (23:30 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 30 Mar 2016 23:30:14 +0000 (23:30 +0000)
commit0cda7644301dd0793f796681030b9425b227f157
tree961501973dd26e7afeb756bfb9728a8cddd16d9f
parent8eaf62ca5d5ab3a2e4e165c53e36c502b1e184d3
[CUDA] Add math forward declares to CUDA header wrapper.

Summary:
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__).

Reviewers: tra

Subscribers: cfe-commits, rnk, rsmith

Differential Revision: http://reviews.llvm.org/D18539

llvm-svn: 264963
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/__clang_cuda_math_forward_declares.h [new file with mode: 0644]
clang/lib/Headers/__clang_cuda_runtime_wrapper.h