[all-commits] [llvm/llvm-project] f07d30: [AArch64][TargetParser] move CPUInfo into tablegen...

Tomas Matheson via All-commits all-commits at lists.llvm.org
Tue Jun 18 02:04:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f07d30072ac0dd0e10a4684335d5f464db627049
      https://github.com/llvm/llvm-project/commit/f07d30072ac0dd0e10a4684335d5f464db627049
  Author: Tomas Matheson <Tomas.Matheson at arm.com>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/test/CodeGen/aarch64-targetattr.c
    M clang/test/Misc/target-invalid-cpu-note.c
    M clang/test/Preprocessor/aarch64-target-features.c
    M flang/test/Driver/target-cpu-features.f90
    M llvm/include/llvm/TargetParser/AArch64TargetParser.h
    M llvm/lib/Target/AArch64/AArch64Processors.td
    M llvm/lib/TargetParser/AArch64TargetParser.cpp
    M llvm/unittests/TargetParser/TargetParserTest.cpp
    M llvm/utils/TableGen/ARMTargetDefEmitter.cpp

  Log Message:
  -----------
  [AArch64][TargetParser] move CPUInfo into tablegen [NFC] (#92145)

This is a follow up to #92037, which moved the architecture information.

Generate the AArch64TargetParser CPUInfo from tablegen Processor defs using a
new tablegen emitter. Some basic error checking is added in the emitter to
ensure that duplicate features are not added to the Processor defs.

The generic CPU becomes an entry in tablegen.

Some CPU features which were present in the CPUInfo but absent from the tablegen
defs have been added to tablegen. FeatureCrypto is replaced with FeatureSHA2 and
FeatureAES. This changes a few of the tests.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list