Skip to content

Commit b804e3f

Browse files
author
git apple-llvm automerger
committed
Merge commit '3000c19df64f' from llvm.org/master into apple/main
2 parents 2118c44 + 3000c19 commit b804e3f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

compiler-rt/lib/builtins/aarch64/lse.S

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ HIDDEN(__aarch64_have_lse_atomics)
113113
.endm
114114

115115
#ifdef L_cas
116-
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(NAME(cas))
116+
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_START(NAME(cas))
117+
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_END(NAME(cas))
117118
JUMP_IF_NOT_LSE 8f
118119
#if SIZE < 16
119120
#ifdef HAS_ASM_LSE
@@ -166,7 +167,8 @@ END_COMPILERRT_OUTLINE_FUNCTION(NAME(cas))
166167
#else
167168
#define SWP .inst 0x38208020 + B + N
168169
#endif
169-
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(NAME(swp))
170+
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_START(NAME(swp))
171+
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_END(NAME(swp))
170172
JUMP_IF_NOT_LSE 8f
171173
SWP // s(0), s(0), [x1]
172174
ret
@@ -209,7 +211,8 @@ END_COMPILERRT_OUTLINE_FUNCTION(NAME(swp))
209211
#define LDOP .inst 0x38200020 + OPN + B + N
210212
#endif
211213

212-
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(NAME(LDNM))
214+
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_START(NAME(LDNM))
215+
DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_END(NAME(LDNM))
213216
JUMP_IF_NOT_LSE 8f
214217
LDOP // s(0), s(0), [x1]
215218
ret

compiler-rt/lib/builtins/assembly.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,16 @@
243243
DECLARE_FUNC_ENCODING \
244244
name:
245245

246-
#define DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(name) \
246+
// TODO(ilinpv) START & END parts will be merged when assembly parser bug
247+
// (kristina) in MasmParser::parseDirectiveCFIStartProc() is fixed.
248+
#define DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_START(name) \
247249
DEFINE_CODE_STATE \
248250
FUNC_ALIGN \
249251
.globl name SEPARATOR \
250252
SYMBOL_IS_FUNC(name) SEPARATOR \
251-
DECLARE_SYMBOL_VISIBILITY(name) SEPARATOR \
253+
DECLARE_SYMBOL_VISIBILITY(name)
254+
255+
#define DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED_END(name) \
252256
CFI_START SEPARATOR \
253257
DECLARE_FUNC_ENCODING \
254258
name: SEPARATOR BTI_C

0 commit comments

Comments
 (0)