[compiler-rt] 2eaba46 - compiler-rt: Use OpenBSD's elf_aux_info to detect AArch64 HW features (#155768)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 28 10:58:50 PDT 2025
Author: Brad Smith
Date: 2025-08-28T13:58:47-04:00
New Revision: 2eaba46f463e79212d549e2ebf74e5d53b88b76b
URL: https://github.com/llvm/llvm-project/commit/2eaba46f463e79212d549e2ebf74e5d53b88b76b
DIFF: https://github.com/llvm/llvm-project/commit/2eaba46f463e79212d549e2ebf74e5d53b88b76b.diff
LOG: compiler-rt: Use OpenBSD's elf_aux_info to detect AArch64 HW features (#155768)
Added:
Modified:
compiler-rt/lib/builtins/cpu_model/aarch64.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/cpu_model/aarch64.c b/compiler-rt/lib/builtins/cpu_model/aarch64.c
index f41c9301dc6a4..d7880529ebe70 100644
--- a/compiler-rt/lib/builtins/cpu_model/aarch64.c
+++ b/compiler-rt/lib/builtins/cpu_model/aarch64.c
@@ -34,7 +34,7 @@ typedef struct __ifunc_arg_t {
_Bool __aarch64_have_lse_atomics
__attribute__((visibility("hidden"), nocommon)) = false;
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
// clang-format off: should not reorder sys/auxv.h alphabetically
#include <sys/auxv.h>
// clang-format on
@@ -68,7 +68,7 @@ struct {
// clang-format off
#if defined(__APPLE__)
#include "aarch64/fmv/apple.inc"
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#include "aarch64/fmv/mrs.inc"
#include "aarch64/fmv/elf_aux_info.inc"
#elif defined(__Fuchsia__)
More information about the llvm-commits
mailing list