[llvm-branch-commits] [compiler-rt] 75f98f0 - [PATCH] [compiler-rt] [builtins] Fix name of __aarch64_have_lse_atomics on Darwin
Stephan Bergmann via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 16 05:47:20 PST 2020
Author: Stephan Bergmann
Date: 2020-12-16T14:42:03+01:00
New Revision: 75f98f0f8c813a0cffb130bc0589e4609ab09076
URL: https://github.com/llvm/llvm-project/commit/75f98f0f8c813a0cffb130bc0589e4609ab09076
DIFF: https://github.com/llvm/llvm-project/commit/75f98f0f8c813a0cffb130bc0589e4609ab09076.diff
LOG: [PATCH] [compiler-rt] [builtins] Fix name of __aarch64_have_lse_atomics on Darwin
...where the name of that variable defined in
compiler-rt/lib/builtins/cpu_model.c is decorated with a leading underscore
Differential Revision: https://reviews.llvm.org/D93390
Added:
Modified:
compiler-rt/lib/builtins/aarch64/lse.S
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/aarch64/lse.S b/compiler-rt/lib/builtins/aarch64/lse.S
index 7a9433fd89cf..5dc0d5320b5a 100644
--- a/compiler-rt/lib/builtins/aarch64/lse.S
+++ b/compiler-rt/lib/builtins/aarch64/lse.S
@@ -28,7 +28,11 @@
.arch armv8-a
#endif
+#if !defined(__APPLE__)
HIDDEN(__aarch64_have_lse_atomics)
+#else
+HIDDEN(___aarch64_have_lse_atomics)
+#endif
// Generate mnemonics for
// L_cas: SIZE: 1,2,4,8,16 MODEL: 1,2,3,4
@@ -106,8 +110,8 @@ HIDDEN(__aarch64_have_lse_atomics)
adrp x(tmp0), __aarch64_have_lse_atomics
ldrb w(tmp0), [x(tmp0), :lo12:__aarch64_have_lse_atomics]
#else
- adrp x(tmp0), __aarch64_have_lse_atomics at page
- ldrb w(tmp0), [x(tmp0), __aarch64_have_lse_atomics at pageoff]
+ adrp x(tmp0), ___aarch64_have_lse_atomics at page
+ ldrb w(tmp0), [x(tmp0), ___aarch64_have_lse_atomics at pageoff]
#endif
cbz w(tmp0), \label
.endm
More information about the llvm-branch-commits
mailing list