1 /*===-- atomic_thread_fence.c -----------------------------------------------===
3 * The LLVM Compiler Infrastructure
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
8 *===------------------------------------------------------------------------===
10 * This file implements atomic_thread_fence from C11's stdatomic.h.
12 *===------------------------------------------------------------------------===
16 #define __has_include(inc) 0
19 #if __has_include(<stdatomic.h>)
21 #include <stdatomic.h>
22 #undef atomic_thread_fence
23 void atomic_thread_fence(memory_order order) {
24 __c11_atomic_thread_fence(order);