[libc-commits] [libc] [libc][NFC] Factor GPU exiting into a common function (PR #66093)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Sep 12 07:46:26 PDT 2023


================
@@ -176,6 +176,12 @@ LIBC_INLINE uint64_t fixed_frequency_clock() {
     return 0;
 }
 
+/// Terminates execution of the associated wavefront.
+LIBC_INLINE void exit() {
+  __builtin_amdgcn_endpgm();
+  __builtin_unreachable();
----------------
jhuber6 wrote:

So it can be omitted for AMDGPU, thanks.

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


More information about the libc-commits mailing list