[llvm] [RISCV] Insert simple landing pad before indirect jumps for Zicfilp. (PR #91860)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 11 08:45:23 PDT 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 31774b6a8a88b435ce79f9ba048ef8bb00e2817e 99091b7d7fe2509383a84970e5ac9c1121fe7c41 -- llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp llvm/lib/Target/RISCV/RISCV.h llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp b/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp
index b577a1d70a..45ac4c8c10 100644
--- a/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp
+++ b/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp
@@ -62,8 +62,9 @@ bool RISCVLandingPadSetup::runOnMachineFunction(MachineFunction &MF) {
uint32_t Label = 0;
if (PreferredLandingPadLabel.getNumOccurrences() > 0) {
if (!isUInt<20>(PreferredLandingPadLabel))
- report_fatal_error("riscv-landing-pad-label=<val>, <val> needs to fit in "
- "unsigned 20-bits");
+ report_fatal_error(
+ "riscv-landing-pad-label=<val>, <val> needs to fit in "
+ "unsigned 20-bits");
Label = PreferredLandingPadLabel;
}
BuildMI(MBB, MI, MI.getDebugLoc(), TII.get(RISCV::LUI), RISCV::X7)
``````````
</details>
https://github.com/llvm/llvm-project/pull/91860
More information about the llvm-commits
mailing list