[all-commits] [llvm/llvm-project] 006720: [AArch64] Handle negative architecture features

David Green via All-commits all-commits at lists.llvm.org
Thu Feb 2 23:34:58 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 006720b9947e2cf4a485c18e1faf84cd948841f5
      https://github.com/llvm/llvm-project/commit/006720b9947e2cf4a485c18e1faf84cd948841f5
  Author: David Green <david.green at arm.com>
  Date:   2023-02-03 (Fri, 03 Feb 2023)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/test/CodeGen/aarch64-targetattr.c
    M clang/test/Preprocessor/aarch64-target-features.c

  Log Message:
  -----------
  [AArch64] Handle negative architecture features

Currently negative architecture features passes to clang like -Xclang
-target-feature -Xclang -v9.3a will end up _enabling_ dependant target
features (like FEAT_MOPS). This patch fixes that by ensuring we don't
enable dependant target features when !Enabled.

Fixes #60375

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




More information about the All-commits mailing list