[libc] [llvm] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 07:54:23 PDT 2024


================
@@ -166,7 +172,7 @@ LIBC_INLINE void atomic_thread_fence([[maybe_unused]] MemoryOrder mem_ord) {
 // except no instructions for memory ordering are issued. Only reordering of
 // the instructions by the compiler is suppressed as order instructs.
 LIBC_INLINE void atomic_signal_fence([[maybe_unused]] MemoryOrder mem_ord) {
-#if LIBC_HAS_BUILTIN(__atomic_signal_fence)
+#if __has_builtin(__atomic_signal_fence)
----------------
gchatelet wrote:

AFAICT it does
https://godbolt.org/z/ojcfTTcdM

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


More information about the llvm-commits mailing list