aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorJon Roelofs <jonathan_roelofs@apple.com>2024-06-18 19:00:46 -0700
committerJon Roelofs <jonathan_roelofs@apple.com>2024-06-18 19:04:03 -0700
commit0c0281130ed51fea06cf20a2db37c5bca257ad31 (patch)
tree767133dec411321e9702130b1d36b541cee38b7e /compiler-rt
parent61571e9046fa6f12661e443123635053186794a1 (diff)
downloadllvm-0c0281130ed51fea06cf20a2db37c5bca257ad31.zip
llvm-0c0281130ed51fea06cf20a2db37c5bca257ad31.tar.gz
llvm-0c0281130ed51fea06cf20a2db37c5bca257ad31.tar.bz2
fixup! [compiler-rt][AArch64][FMV] Use the hw.optional.arm.caps fast path (#95275)
https://github.com/llvm/llvm-project/pull/95275#issuecomment-2177366693
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc b/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc
index 6f4b9ab..f069490 100644
--- a/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc
+++ b/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc
@@ -5,6 +5,21 @@
#if __has_include(<arm/cpu_capabilities_public.h>)
#include <arm/cpu_capabilities_public.h>
#define HAS_CPU_CAPABILITIES_PUBLIC_H 1
+
+// FB13964283 - A few of these didn't make it into the public SDK yet.
+#ifndef CAP_BIT_FEAT_SME
+#define CAP_BIT_FEAT_SME 40
+#endif
+#ifndef CAP_BIT_FEAT_SME2
+#define CAP_BIT_FEAT_SME2 41
+#endif
+#ifndef CAP_BIT_FEAT_SME_F64F64
+#define CAP_BIT_FEAT_SME_F64F64 42
+#endif
+#ifndef CAP_BIT_FEAT_SME_I16I64
+#define CAP_BIT_FEAT_SME_I16I64 43
+#endif
+
#endif
static bool isKnownAndSupported(const char *name) {