-
Notifications
You must be signed in to change notification settings - Fork 14.2k
[llvm][AArch64][TableGen] Create a ProcessorAlias record #96249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ee1389a
5d2fce1
7adcf8e
a57a46f
7ea665d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't love this special case. But, not sure what to do about it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
Values.push_back(Alias.AltName); | ||
|
||
llvm::sort(Values); | ||
} | ||
|
||
bool AArch64::isX18ReservedByDefault(const Triple &TT) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split into multiple lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean:
or to add a few
AARCH64-SAME:
's? The latter seems less preferable, since it leaves holes. For ex. writing:could accidentally miss out on checking for
ampere1a
, whereas the current form forces complete coverage with the{{$}}
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant
AARCH64-SAME
, but you are right, that will potentially miss things. I'd be happy with changing the actual output format, but it doesn't have to be done in this PR.