[compiler-rt] 0c02811 - fixup! [compiler-rt][AArch64][FMV] Use the hw.optional.arm.caps fast path (#95275)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 19:04:13 PDT 2024


Author: Jon Roelofs
Date: 2024-06-18T19:04:03-07:00
New Revision: 0c0281130ed51fea06cf20a2db37c5bca257ad31

URL: https://github.com/llvm/llvm-project/commit/0c0281130ed51fea06cf20a2db37c5bca257ad31
DIFF: https://github.com/llvm/llvm-project/commit/0c0281130ed51fea06cf20a2db37c5bca257ad31.diff

LOG: fixup! [compiler-rt][AArch64][FMV] Use the hw.optional.arm.caps fast path (#95275)

https://github.com/llvm/llvm-project/pull/95275#issuecomment-2177366693

Added: 
    

Modified: 
    compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc

Removed: 
    


################################################################################
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 6f4b9ab37e36b..f0694900f231f 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) {


        


More information about the llvm-commits mailing list