[all-commits] [llvm/llvm-project] 40a631: [Clang] Refactor diagnostics for SME builtins. (#7...

Sander de Smalen via All-commits all-commits at lists.llvm.org
Fri Jan 19 08:02:36 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40a631f452726606e1d43b5d2744aa983949af78
      https://github.com/llvm/llvm-project/commit/40a631f452726606e1d43b5d2744aa983949af78
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M clang/include/clang/Basic/arm_sme.td
    M clang/include/clang/Basic/arm_sve_sme_incl.td
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Sema/aarch64-incompat-sm-builtin-calls.c
    M clang/utils/TableGen/SveEmitter.cpp

  Log Message:
  -----------
  [Clang] Refactor diagnostics for SME builtins. (#78258)

The arm_sme.td file was still using `IsSharedZA` and `IsPreservesZA`,
which should be changed to match the new state attributes added in
#76971.

This patch adds `IsInZA`, `IsOutZA` and `IsInOutZA` as the state for the
Clang builtins and fixes up the code in SemaChecking and SveEmitter to
match.

Note that the code is written in such a way that it can be easily
extended with ZT0 state (to follow in a future patch).




More information about the All-commits mailing list