Skip to content

Commit 05c319b

Browse files
committed
Rebase [to squash]
Updated to match the implemented LLVM attribute names recognised by the SMEAttrs class.
1 parent 6cae476 commit 05c319b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,13 +1785,13 @@ static void AddAttributesFromFunctionProtoType(ASTContext &Ctx,
17851785

17861786
// ZT0
17871787
if (FunctionType::getArmZT0State(SMEBits) == FunctionType::ARM_Preserves)
1788-
FuncAttrs.addAttribute("aarch64_zt0_preserved");
1788+
FuncAttrs.addAttribute("aarch64_preserves_zt0");
17891789
if (FunctionType::getArmZT0State(SMEBits) == FunctionType::ARM_In)
1790-
FuncAttrs.addAttribute("aarch64_zt0_in");
1790+
FuncAttrs.addAttribute("aarch64_in_zt0");
17911791
if (FunctionType::getArmZT0State(SMEBits) == FunctionType::ARM_Out)
1792-
FuncAttrs.addAttribute("aarch64_zt0_out");
1792+
FuncAttrs.addAttribute("aarch64_out_zt0");
17931793
if (FunctionType::getArmZT0State(SMEBits) == FunctionType::ARM_InOut)
1794-
FuncAttrs.addAttribute("aarch64_zt0_inout");
1794+
FuncAttrs.addAttribute("aarch64_inout_zt0");
17951795
}
17961796

17971797
static void AddAttributesFromAssumes(llvm::AttrBuilder &FuncAttrs,

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
24162416
if (Attr->isNewZA())
24172417
B.addAttribute("aarch64_pstate_za_new");
24182418
if (Attr->isNewZT0())
2419-
B.addAttribute("aarch64_zt0_new");
2419+
B.addAttribute("aarch64_new_zt0");
24202420
}
24212421

24222422
// Track whether we need to add the optnone LLVM attribute,

clang/test/CodeGen/aarch64-sme2-intrinsics/aarch64-sme2-attrs.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ __arm_new("za", "zt0") void new_za_zt0() { }
5050

5151
}
5252

53-
// CHECK: attributes #[[ZT0_IN]] = {{{.*}} "aarch64_zt0_in" {{.*}}}
54-
// CHECK: attributes #[[ZT0_OUT]] = {{{.*}} "aarch64_zt0_out" {{.*}}}
55-
// CHECK: attributes #[[ZT0_INOUT]] = {{{.*}} "aarch64_zt0_inout" {{.*}}}
56-
// CHECK: attributes #[[ZT0_PRESERVED]] = {{{.*}} "aarch64_zt0_preserved" {{.*}}}
57-
// CHECK: attributes #[[ZT0_NEW]] = {{{.*}} "aarch64_zt0_new" {{.*}}}
53+
// CHECK: attributes #[[ZT0_IN]] = {{{.*}} "aarch64_in_zt0" {{.*}}}
54+
// CHECK: attributes #[[ZT0_OUT]] = {{{.*}} "aarch64_out_zt0" {{.*}}}
55+
// CHECK: attributes #[[ZT0_INOUT]] = {{{.*}} "aarch64_inout_zt0" {{.*}}}
56+
// CHECK: attributes #[[ZT0_PRESERVED]] = {{{.*}} "aarch64_preserves_zt0" {{.*}}}
57+
// CHECK: attributes #[[ZT0_NEW]] = {{{.*}} "aarch64_new_zt0" {{.*}}}

0 commit comments

Comments
 (0)