[all-commits] [llvm/llvm-project] 55b6a3: [llvm][AArch64] Generate getExtensionFeatures from...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Apr 11 06:42:44 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55b6a3186cfa8b85a1defe05861d73f447e4c990
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2022-04-11 (Mon, 11 Apr 2022)

  Changed paths:
    M clang/test/Preprocessor/aarch64-target-features.c
    M llvm/lib/Support/AArch64TargetParser.cpp
    M llvm/unittests/Support/TargetParserTest.cpp

  Log Message:
  [llvm][AArch64] Generate getExtensionFeatures from the list of extensions

This takes the AARCH64_ARCH_EXT_NAME in AArch64TargetParser.def and uses
it to generate all the "if bit is set add this feature name" code.

Which gives us a bunch that we were missing. I've updated testing
to include those and reordered them to match the order in the .def.

The final part of the test will catch any missing extensions if
we somehow manage to not generate an if block for them.

This has changed the order of cc1's "-target-feature" output so I've
updated some tests in clang to reflect that.

Reviewed By: tmatheson

Differential Revision: https://reviews.llvm.org/D123296

More information about the All-commits mailing list