1 //===-- sync_synchronize - Implement memory barrier * ----------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "../assembly.h"
11 // When compiling a use of the gcc built-in __sync_synchronize() in thumb1 mode
12 // the compiler may emit a call to __sync_synchronize.
13 // On Darwin the implementation jumps to an OS supplied function named
22 DEFINE_COMPILERRT_PRIVATE_FUNCTION(__sync_synchronize)
27 END_COMPILERRT_FUNCTION(__sync_synchronize)
29 // tell linker it can break up file at label boundaries
30 .subsections_via_symbols
34 NO_EXEC_STACK_DIRECTIVE