diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -43,6 +43,7 @@ #include #include #include +#include #endif #ifdef _AIX #include @@ -1362,10 +1363,18 @@ case CPUFAMILY_ARM_LIGHTNING_THUNDER: return "apple-a13"; case CPUFAMILY_ARM_FIRESTORM_ICESTORM: - return "apple-m1"; + return "apple-a14"; default: +#if TARGET_OS_OSX // Default to the newest CPU we know about. return "apple-m1"; +#elif defined(__arm64e__) + // Pointer authentication requires ARMv8.3a+, and apple-a12 was the first + // Apple CPU to support that ISA. + return "apple-a12"; +#endif + return "generic"; +#endif } } #elif defined(_AIX)