[libc-commits] [libc] [libc][POSIX] Add clock_settime() function for NVPTX targets (PR #168494)

Anton Shepelev via libc-commits libc-commits at lists.llvm.org
Thu Feb 12 10:49:24 PST 2026


amemov wrote:

Not really - when I finished `clock_settime` a couple of months ago for Linux, I decided to also do this one for sake of completeness. At the time I started working on this issue, I wasn't sure that the clock is immutable - in NVPTX ISA it only says "this is special register", but not that it is not mutable. 

Only learned about it yesterday, when I finally got time to work on this PR, during compilation of some NVPTX assembly to see if it would actually work. 

https://github.com/llvm/llvm-project/pull/168494


More information about the libc-commits mailing list