This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Avoid scanning feature list for target parsing
ClosedPublic

Authored by tyb0807 on Mar 2 2022, 6:59 PM.

Details

Summary

As discussed in https://reviews.llvm.org/D120111, this patch proposes an
alternative implementation to avoid scanning feature list for
architecture version over and over again. The insertion position for
default extensions is also captured during this single scan of the
feature list.

Diff Detail

Event Timeline

tyb0807 created this revision.Mar 2 2022, 6:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 6:59 PM
tyb0807 requested review of this revision.Mar 2 2022, 6:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 6:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
tyb0807 updated this revision to Diff 412592.Mar 2 2022, 7:04 PM

Update logic to define crypto extensions, strictly following the old implementation

tmatheson accepted this revision.Mar 7 2022, 3:53 AM
This revision is now accepted and ready to land.Mar 7 2022, 3:53 AM
clang/lib/Driver/ToolChains/Arch/AArch64.cpp
411–412

should this check be >= 4? Does "+v8.5" have fp16 support? Or only "+v8.4"?

411–412

Another scan of the feature list. Hoist these?

416–417

another scan of the Features list. Perhaps this instance can be hoisted above to the code you added?

tyb0807 updated this revision to Diff 419866.Apr 1 2022, 2:55 PM

Refactor fp16 feature handling and add more fp16 tests for v8.5 and later

tyb0807 marked 3 inline comments as done.Apr 1 2022, 2:56 PM
nickdesaulniers accepted this revision.Apr 1 2022, 2:59 PM
This revision was landed with ongoing or failed builds.Apr 2 2022, 6:57 AM
This revision was automatically updated to reflect the committed changes.