This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][Clang] Adjust default features for v8.9-A/v9.4-A in clang driver
ClosedPublic

Authored by pratlucas on Jan 10 2023, 9:10 AM.

Details

Summary

Update the clang driver to include the following features as default for
the v8.9-A/v9.4-A architecture versions:

  • FEAT_SPECRES2
  • FEAT_CSSC
  • FEAT_RASv2

Patch by Sam Elliott.

Diff Detail

Event Timeline

pratlucas created this revision.Jan 10 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 9:10 AM
pratlucas requested review of this revision.Jan 10 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 9:10 AM
tmatheson accepted this revision.Jan 10 2023, 9:23 AM
This revision is now accepted and ready to land.Jan 10 2023, 9:23 AM
lenary accepted this revision.Jan 10 2023, 9:37 AM

Do you know why this code is in the Driver? I would have expected mandatory features to be added to the AARCH64_ARCH in AArch64TargetParser.td. I don't think they are then needed in the driver.

I can put up a patch to show what I mean, as I think the same applies to i8mm/bf16 and hbc/mops.

I've put up D141518 to move the existing features. Let me know what you think

I agree the approach in D141518 makes more sense

pratlucas updated this revision to Diff 491385.Jan 23 2023, 8:01 AM

Updated to use the same approach as D141518.

Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 8:01 AM
lenary accepted this revision.Jan 23 2023, 8:04 AM
tmatheson added inline comments.Jan 23 2023, 8:07 AM
clang/test/Driver/aarch64-cssc.c
11

Missing -###?

pratlucas marked an inline comment as done.Jan 23 2023, 8:10 AM
pratlucas added inline comments.
clang/test/Driver/aarch64-cssc.c
11

That's a consequence of the approach from D141518. The target features now go into IR attributes instead.

tmatheson accepted this revision.Jan 23 2023, 8:11 AM
This revision was landed with ongoing or failed builds.Jan 23 2023, 8:41 AM
This revision was automatically updated to reflect the committed changes.
pratlucas marked an inline comment as done.