HomePhabricator

[CUDA] Add math forward declares to CUDA header wrapper.

Authored by jlebar on Mar 30 2016, 4:30 PM.

Description

[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

Details

Committed
jlebarMar 30 2016, 4:30 PM
Differential Revision
D18539: [CUDA] Add math forward declares.
Parents
rG8eaf62ca5d5a: Fix MachO test which is failing on a Windows bot.
Branches
Unknown
Tags
Unknown