[llvm] [RISCV] GISel custom lowering for addiw (PR #121587)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 09:52:45 PST 2025


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 cb1ad985b53c87b53974e37bba60129acb294f0d 267124579fbcc182516325b247d675b0a1f1e505 --extensions cpp -- llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index a8d83308df..2bcc39a6cc 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -1342,10 +1342,10 @@ bool RISCVLegalizerInfo::legalizeCustom(
     Helper.Observer.changingInstr(MI);
     Helper.widenScalarSrc(MI, LLT::scalar(64), 1, TargetOpcode::G_ANYEXT);
     Helper.widenScalarSrc(MI, LLT::scalar(64), 2, TargetOpcode::G_ANYEXT);
-    
+
     Register DstAdd = MRI.createGenericVirtualRegister(sXLen);
     Register DstSext = MRI.createGenericVirtualRegister(sXLen);
-    
+
     MachineOperand &MO = MI.getOperand(0);
     MIRBuilder.setInsertPt(MIRBuilder.getMBB(), ++MIRBuilder.getInsertPt());
     MIRBuilder.buildSExtInReg(DstSext, DstAdd, 32);

``````````

</details>


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


More information about the llvm-commits mailing list