diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2024-01-23 12:35:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 12:35:16 +0100 |
commit | 1652d44d8da83b0a01d5f0b378f10882f5ec8d22 (patch) | |
tree | e70c058cc4c8a3e9d2a7e8da170f9164e190b4b4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5c7bbe383bf2de0c1de36c7231bbd7f75bfccb1e (diff) | |
download | llvm-1652d44d8da83b0a01d5f0b378f10882f5ec8d22.zip llvm-1652d44d8da83b0a01d5f0b378f10882f5ec8d22.tar.gz llvm-1652d44d8da83b0a01d5f0b378f10882f5ec8d22.tar.bz2 |
[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")
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 78b2f2b..1280bcd 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2415,6 +2415,8 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, if (auto *Attr = D->getAttr<ArmNewAttr>()) { if (Attr->isNewZA()) B.addAttribute("aarch64_pstate_za_new"); + if (Attr->isNewZT0()) + B.addAttribute("aarch64_new_zt0"); } // Track whether we need to add the optnone LLVM attribute, |