[llvm] [BOLT][RISCV] Support split function fragments (PR #219965)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 06:09:40 PDT 2026


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 origin/main HEAD --extensions cpp,h -- bolt/include/bolt/Core/MCPlusBuilder.h bolt/lib/Passes/LongJmp.cpp bolt/lib/Rewrite/BinaryPassManager.cpp bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp b/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
index 3b7294736..f4d6f5e2a 100644
--- a/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
+++ b/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
@@ -94,7 +94,7 @@ public:
 
   void getDefaultLiveOut(BitVector &Regs) const override {
     // The RISC-V psABI uses a0 (x10) and a1 (x11) to return integer and pointer
-    // values. 
+    // values.
     Regs |= getAliases(RISCV::X10);
     Regs |= getAliases(RISCV::X11);
   }

``````````

</details>


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


More information about the llvm-commits mailing list