[all-commits] [llvm/llvm-project] 0c0127: [AArch64] Make -march and target(arch=..) attribut...

David Green via All-commits all-commits at lists.llvm.org
Wed Jan 11 00:48:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c0127bb9f0098752a9769748511e170ed240695
      https://github.com/llvm/llvm-project/commit/0c0127bb9f0098752a9769748511e170ed240695
  Author: David Green <david.green at arm.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    A clang/test/CodeGen/aarch64-targetattr-arch.c
    M clang/test/CodeGen/aarch64-targetattr.c
    M llvm/include/llvm/TargetParser/AArch64TargetParser.def

  Log Message:
  -----------
  [AArch64] Make -march and target(arch=..) attributes imply dependent features

Specifying an architecture revision should also add feature strings for
any dependent default extensions. Otherwise the new checks for
target-dependent features for acle intrinsics from D134353 and D132034
can fail.

This patch does that in setFeatureEnabled, similar to the addition of
dependent architecture revisions. +sve also needs to be added to armv9
architectures in the target parser, as it is implied by +sve2.

Fixes #59911

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




More information about the All-commits mailing list