[llvm-branch-commits] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)
Jon Roelofs via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 12 16:16:00 PST 2024
================
@@ -347,6 +347,29 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) {
}
}
+ if (Implementer == "0x61") { // Apple
+ return StringSwitch<const char *>(Part)
+ .Case("0x020", "apple-m1")
+ .Case("0x021", "apple-m1")
+ .Case("0x022", "apple-m1")
+ .Case("0x023", "apple-m1")
+ .Case("0x024", "apple-m1")
+ .Case("0x025", "apple-m1")
+ .Case("0x028", "apple-m1")
+ .Case("0x029", "apple-m1")
+ .Case("0x030", "apple-m2")
+ .Case("0x031", "apple-m2")
+ .Case("0x032", "apple-m2")
+ .Case("0x033", "apple-m2")
+ .Case("0x034", "apple-m2")
+ .Case("0x035", "apple-m2")
+ .Case("0x038", "apple-m2")
+ .Case("0x039", "apple-m2")
+ .Case("0x049", "apple-m3")
+ .Case("0x048", "apple-m3")
+ .Default("generic");
----------------
jroelofs wrote:
here's where they're "documented" on our end:
https://github.com/apple-oss-distributions/xnu/blob/main/osfmk/arm/cpuid.h
https://github.com/llvm/llvm-project/pull/119777
More information about the llvm-branch-commits
mailing list