[clang] [llvm] [llvm][AArch64] Move Apple aliases into the CpuAlias map (PR #96249)
Tomas Matheson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 03:27:19 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")
----------------
tmatheson-arm wrote:
I don't love this special case. But, not sure what to do about it.
https://github.com/llvm/llvm-project/pull/96249
More information about the llvm-commits
mailing list