]> granicus.if.org Git - clang/commit
[CUDA] Add appropriate host/device attribute to builtins.
authorArtem Belevich <tra@google.com>
Tue, 22 Sep 2015 17:23:05 +0000 (17:23 +0000)
committerArtem Belevich <tra@google.com>
Tue, 22 Sep 2015 17:23:05 +0000 (17:23 +0000)
commit3fd3179dd7658572093165e110628d4449d0ee97
tree798b74b1ca99409de3e89251bed3dd5ea787e500
parent72de1e381c176b8c130e589d9dcd9ed78bb4c4bc
[CUDA] Add appropriate host/device attribute to builtins.

The changes are part of attribute-based CUDA function overloading (D12453)
and as such are only enabled when it's in effect (-fcuda-target-overloads).

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248296 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.h
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDecl.cpp
test/SemaCUDA/builtins.cu [new file with mode: 0644]
test/SemaCUDA/implicit-intrinsic.cu