[llvm] [BOLT][AArch64] Add isPush & isPop (PR #120713)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 04:49:43 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 59c7d6f965af9f1e05f8447c50fde8bbde346361 60af14ca3b76d6891d871a6b9347463c38d1b52e --extensions cpp -- bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp b/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
index 4da40bccaf..743580e33e 100644
--- a/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
+++ b/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
@@ -320,7 +320,6 @@ public:
             Inst.getOpcode() == AArch64::LDNPXi);
   }
 
-
   bool isLDRS(const MCInst &Inst) const {
     return (Inst.getOpcode() == AArch64::LDRSui ||
             Inst.getOpcode() == AArch64::LDRSroW ||
@@ -361,9 +360,8 @@ public:
   }
 
   bool mayLoad(const MCInst &Inst) const override {
-    return isLDRB(Inst) || isLDRH(Inst) || isLDRW(Inst) ||
-           isLDRX(Inst) || isLDRQ(Inst) || isLDRD(Inst) ||
-           isLDRS(Inst) || isPrefetch(Inst);
+    return isLDRB(Inst) || isLDRH(Inst) || isLDRW(Inst) || isLDRX(Inst) ||
+           isLDRQ(Inst) || isLDRD(Inst) || isLDRS(Inst) || isPrefetch(Inst);
   }
 
   bool isAArch64ExclusiveLoad(const MCInst &Inst) const override {

``````````

</details>


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


More information about the llvm-commits mailing list