[libc-commits] [clang] [libc] [libc][clang] Use __nvvm_nanosleep builtin over inline assembly (PR #198815)
Alex MacLean via libc-commits
libc-commits at lists.llvm.org
Fri May 22 12:49:04 PDT 2026
AlexMaclean wrote:
@Artem-B / @jhuber6 You're both correct. This change won't work as written due to the PTX and SM version restrictions clang and NVPTX enforce on the builtin and intrinsic. It still seems like a bit of a hack to use inline assembly to circumvent these checks. Do either of you have ideas for how this could be made to work? maybe with `__has_builtin` instead of `__nvvm_reflect`?
https://github.com/llvm/llvm-project/pull/198815
More information about the libc-commits
mailing list