[clang] [llvm] [llvm][AArch64] Move Apple aliases into the CpuAlias map (PR #96249)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 11:38:46 PDT 2024


================
@@ -88,10 +88,14 @@ StringRef AArch64::getArchExtFeature(StringRef ArchExt) {
 
 void AArch64::fillValidCPUArchList(SmallVectorImpl<StringRef> &Values) {
   for (const auto &C : CpuInfos)
-      Values.push_back(C.Name);
+    Values.push_back(C.Name);
 
   for (const auto &Alias : CpuAliases)
-    Values.push_back(Alias.AltName);
+    // The apple-latest alias is backend only, do not expose it to clang's -mcpu.
+    if (Alias.AltName != "apple-latest")
----------------
jroelofs wrote:

`apple-latest` is a bit of a special snowflake, meant for disassemblers and debuggers.  I'm not sure what else to do with it either.

https://github.com/llvm/llvm-project/pull/96249


More information about the llvm-commits mailing list