[llvm] [CodeGen] Prune headers and move code out of line for build efficiency, NFC (PR #135622)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 14 06:10:40 PDT 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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/CodeGen/MachineInstr.h llvm/include/llvm/CodeGen/TargetLowering.h llvm/include/llvm/Target/TargetMachine.h llvm/lib/CodeGen/MachineInstr.cpp llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp llvm/lib/CodeGen/TargetLoweringBase.cpp llvm/lib/Target/X86/X86Subtarget.cpp llvm/lib/Target/X86/X86Subtarget.h llvm/lib/Target/X86/X86TargetTransformInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 8b888595c..7e4a32f67 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -806,15 +806,14 @@ getDebugOperandsForRegHelper(Instruction *MI, Register Reg) {
iterator_range<filter_iterator<const MachineOperand *,
std::function<bool(const MachineOperand &Op)>>>
MachineInstr::getDebugOperandsForReg(Register Reg) const {
- return getDebugOperandsForRegHelper<const MachineOperand,
- const MachineInstr>(this, Reg);
+ return getDebugOperandsForRegHelper<const MachineOperand, const MachineInstr>(
+ this, Reg);
}
-iterator_range<filter_iterator<MachineOperand *,
- std::function<bool(MachineOperand &Op)>>>
+iterator_range<
+ filter_iterator<MachineOperand *, std::function<bool(MachineOperand &Op)>>>
MachineInstr::getDebugOperandsForReg(Register Reg) {
- return getDebugOperandsForRegHelper<MachineOperand, MachineInstr>(
- this, Reg);
+ return getDebugOperandsForRegHelper<MachineOperand, MachineInstr>(this, Reg);
}
unsigned MachineInstr::getNumExplicitOperands() const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/135622
More information about the llvm-commits
mailing list