]> granicus.if.org Git - clang/commitdiff
[CUDA] Added stubs for __nvvm_atom_add_*_d() builtins.
authorArtem Belevich <tra@google.com>
Wed, 19 Aug 2015 21:11:37 +0000 (21:11 +0000)
committerArtem Belevich <tra@google.com>
Wed, 19 Aug 2015 21:11:37 +0000 (21:11 +0000)
They show up in CUDA headers but are not currently supported by
NVPTX back-end.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245502 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/BuiltinsNVPTX.def

index 970f55fe223c3c938efea918f39b1e80bab3707d..f1cc961dd0e6e34ff080a34705615618abd4c07c 100644 (file)
@@ -453,6 +453,9 @@ BUILTIN(__nvvm_atom_add_gen_ll, "LLiLLiD*LLi", "n")
 BUILTIN(__nvvm_atom_add_g_f, "ffD*1f", "n")
 BUILTIN(__nvvm_atom_add_s_f, "ffD*3f", "n")
 BUILTIN(__nvvm_atom_add_gen_f, "ffD*f", "n")
+BUILTIN(__nvvm_atom_add_g_d, "ddD*1d", "n")
+BUILTIN(__nvvm_atom_add_s_d, "ddD*3d", "n")
+BUILTIN(__nvvm_atom_add_gen_d, "ddD*d", "n")
 
 BUILTIN(__nvvm_atom_sub_g_i, "iiD*1i", "n")
 BUILTIN(__nvvm_atom_sub_s_i, "iiD*3i", "n")