[llvm] [AArch64][SME2] Preserve ZT0 state around function calls (PR #78321)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 03:14:27 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 847c78726920e4a29d71bdc3a46c92a0bc26bfc4 f8204634af793659942935bfa7907874881718cb -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.h llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 27b81faccf..a07fcdbd8a 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -7687,7 +7687,7 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
   bool ToggleZA = CallerAttrs.requiresZAToggle(CalleeAttrs);
 
   assert((!ToggleZA || !RequiresLazySave) &&
-       "Lazy-save should have PSTATE.SM=1 on entry to the function");
+         "Lazy-save should have PSTATE.SM=1 on entry to the function");
 
   if (ToggleZA)
     Chain = DAG.getNode(
diff --git a/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h b/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h
index cedc683e9d..c9585cbb00 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h
+++ b/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h
@@ -124,7 +124,6 @@ public:
   }
   bool requiresZAToggle(const SMEAttrs &Callee) const {
     return hasZT0State() && !hasZAState() && Callee.hasPrivateZAInterface();
-
   }
 };
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/78321


More information about the llvm-commits mailing list