This is an archive of the discontinued LLVM Phabricator instance.

[NFC][AArch64] Get default features directly from ArchInfo and CpuInfo objects
ClosedPublic

Authored by pratlucas on Jan 25 2023, 6:53 AM.

Details

Summary

This updates the AArch64's Target Parser and its uses to capture
information about default features directly from ArchInfo and CpuInfo
objects, instead of relying on an API function to access them
indirectly.

Diff Detail

Event Timeline

pratlucas created this revision.Jan 25 2023, 6:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 6:53 AM
pratlucas requested review of this revision.Jan 25 2023, 6:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 25 2023, 6:53 AM
Matt added a subscriber: Matt.Jan 25 2023, 8:55 AM
tmatheson accepted this revision.Jan 26 2023, 6:57 AM

Looks great, thanks

llvm/include/llvm/TargetParser/AArch64TargetParser.h
338

nit: I would expect getDefaultExtensions() to return the value of DefaultExtensions. Is there a better naming combo we could use?

This revision is now accepted and ready to land.Jan 26 2023, 6:57 AM
pratlucas updated this revision to Diff 492491.Jan 26 2023, 9:37 AM

Renaming getDefaultExtensions() to getImpliedExtensions().

pratlucas marked an inline comment as done.Jan 26 2023, 9:38 AM
This revision was landed with ongoing or failed builds.Jan 27 2023, 4:37 AM
This revision was automatically updated to reflect the committed changes.