[PATCH] D142087: [AArch64] Armv9-A implies FP16

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 01:03:31 PST 2023


dmgreen created this revision.
dmgreen added reviewers: ilinpv, danielkiss, DavidSpickett, ostannard, efriedma, tmatheson, lenary, pratlucas.
Herald added subscribers: ctetreau, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

As Armv9-a implies SVE2 it implies SVE (added in D141411 <https://reviews.llvm.org/D141411>) and so it should also imply FP16, which this patch adds. This helps get the target features correct when using `target("arch=armv9-a")` attributes.

There is also an adjustment to AssertSameExtensionFlags in this patch to make it print cpu names, useful when the TargetParser unit tests are run through lit to distinguish which cpu is failing.


https://reviews.llvm.org/D142087

Files:
  clang/test/CodeGen/aarch64-targetattr-arch.c
  clang/test/CodeGen/aarch64-targetattr.c
  llvm/include/llvm/TargetParser/AArch64TargetParser.h
  llvm/unittests/TargetParser/TargetParserTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142087.490391.patch
Type: text/x-patch
Size: 8972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230119/1310d7f3/attachment.bin>


More information about the llvm-commits mailing list