[llvm] [ARM] Add a method to clear registers (PR #69659)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 16:25:36 PDT 2023
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 5070c1e3b07c5b384fe0a064aa99f25b8af4b7e9 52667928de837bcd8cb1b90d5e123b01505a3e03 -- llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp llvm/lib/Target/ARM/ARMBaseInstrInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index a07504aaedbc..1add88dc01ea 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -6741,8 +6741,7 @@ void ARMBaseInstrInfo::buildClearRegister(Register DstReg,
DebugLoc &DL,
bool AllowSideEffects) const {
unsigned Opc = Subtarget.isThumb2() ? ARM::t2MOVi32imm : ARM::MOVi32imm;
- BuildMI(MBB, Iter, DL, get(Opc), DstReg)
- .addImm(0);
+ BuildMI(MBB, Iter, DL, get(Opc), DstReg).addImm(0);
}
bool ARMBaseInstrInfo::shouldOutlineFromFunctionByDefault(
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.h b/llvm/lib/Target/ARM/ARMBaseInstrInfo.h
index 44b3e528c0c2..e65e684c5620 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.h
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.h
@@ -364,8 +364,7 @@ public:
outliner::Candidate &C) const override;
void buildClearRegister(Register Reg, MachineBasicBlock &MBB,
- MachineBasicBlock::iterator Iter,
- DebugLoc &DL,
+ MachineBasicBlock::iterator Iter, DebugLoc &DL,
bool AllowSideEffects = true) const override;
/// Enable outlining by default at -Oz.
``````````
</details>
https://github.com/llvm/llvm-project/pull/69659
More information about the llvm-commits
mailing list