[compiler-rt] 394e481 - fixup! [builtins] Refactor cpu_model support to reduce #if nesting. NFCI
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 16:49:40 PST 2023
Author: Jon Roelofs
Date: 2023-12-19T17:48:24-07:00
New Revision: 394e481a38c774f12c765fde7e9302d039a7cd94
URL: https://github.com/llvm/llvm-project/commit/394e481a38c774f12c765fde7e9302d039a7cd94
DIFF: https://github.com/llvm/llvm-project/commit/394e481a38c774f12c765fde7e9302d039a7cd94.diff
LOG: fixup! [builtins] Refactor cpu_model support to reduce #if nesting. NFCI
https://github.com/llvm/llvm-project/pull/75635#issuecomment-1863662913
Added:
Modified:
compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc b/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc
index d5c16ae977d14d..94bf64a5b0b0fa 100644
--- a/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc
+++ b/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc
@@ -1,7 +1,8 @@
#include <string.h>
+#include <sys/auxv.h>
#include <sys/system_properties.h>
-static void __isExynos9810(void) {
+static bool __isExynos9810(void) {
char arch[PROP_VALUE_MAX];
return __system_property_get("ro.arch", arch) > 0 &&
strncmp(arch, "exynos9810", sizeof("exynos9810") - 1) == 0;
More information about the llvm-commits
mailing list