[Clang] Amend SME attributes with support for ZT0. (#77941)
authorSander de Smalen <sander.desmalen@arm.com>
Tue, 23 Jan 2024 11:35:16 +0000 (12:35 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 11:35:16 +0000 (12:35 +0100)
commit1652d44d8da83b0a01d5f0b378f10882f5ec8d22
treee70c058cc4c8a3e9d2a7e8da170f9164e190b4b4
parent5c7bbe383bf2de0c1de36c7231bbd7f75bfccb1e
[Clang] Amend SME attributes with support for ZT0. (#77941)

This patch builds on top of #76971 and implements support for:
* __arm_new("zt0")
* __arm_in("zt0")
* __arm_out("zt0")
* __arm_inout("zt0")
* __arm_preserves("zt0")
13 files changed:
clang/include/clang/AST/Type.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/TypePrinter.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaType.cpp
clang/test/CodeGen/aarch64-sme2-intrinsics/aarch64-sme2-attrs.cpp [new file with mode: 0644]
clang/test/Sema/aarch64-sme-func-attrs-without-target-feature.cpp
clang/test/Sema/aarch64-sme-func-attrs.c