[llvm] [RISCV][GISEL][NFC] Make MRI a member in RISCVInstructionSelector (PR #110926)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 13:52:02 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 40b8a0fd174397e87925da3f1837d74d5d663a50 fc9e0f302a742cf1e18e3713b0b7b8b30a0aa95f --extensions cpp -- llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp b/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
index dfaf87509d..2f46ea9b60 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
@@ -959,8 +959,7 @@ bool RISCVInstructionSelector::materializeImm(Register DstReg, int64_t Imm,
 }
 
 bool RISCVInstructionSelector::selectAddr(MachineInstr &MI,
-                                          MachineIRBuilder &MIB,
-                                          bool IsLocal,
+                                          MachineIRBuilder &MIB, bool IsLocal,
                                           bool IsExternWeak) const {
   assert((MI.getOpcode() == TargetOpcode::G_GLOBAL_VALUE ||
           MI.getOpcode() == TargetOpcode::G_JUMP_TABLE ||

``````````

</details>


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


More information about the llvm-commits mailing list