[libc-commits] [PATCH] D145608: [libc] Add intrinsic for thread fence to the atomic support
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Mar 8 19:26:30 PST 2023
lntue added inline comments.
================
Comment at: libc/src/__support/CPP/atomic.h:97
+inline void atomic_thread_fence(MemoryOrder mem_ord) {
+ __atomic_thread_fence(int(mem_ord));
+}
----------------
Do we need a guard to check if the builtin `__atomic_thread_fence` is available?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145608/new/
https://reviews.llvm.org/D145608
More information about the libc-commits
mailing list