[PATCH] D47154: Try to make builtin address space declarations not useless

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 22 16:20:51 PDT 2018

tra added a comment.

CUDA does not expose explicit AS on clang size. All pointers are treated as generic and we infer specific address space only in LLVM.
`__nvvm_atom_*_[sg]_*` builtins should probably be removed as they are indeed useless without pointers with explicit AS and NVCC itself does not have such builtins either.  Instead, we should convert the generic AS builtin to address-space specific instruction somewhere in LLVM.

Using `attribute((address_space())` should probably produce an error during CUDA compilation.


More information about the cfe-commits mailing list