[llvm] MachineInstrBundle: modernize a couple of loops (NFC) (PR #89229)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 06:22:39 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 14774ad59da4aaa8eb3da21c8c53b59834a1aeb7 67956eab718a1a287af9a256753ee9b4c1faa744 -- llvm/lib/CodeGen/MachineInstrBundle.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/MachineInstrBundle.cpp b/llvm/lib/CodeGen/MachineInstrBundle.cpp
index a34de215ba..dafa8e2527 100644
--- a/llvm/lib/CodeGen/MachineInstrBundle.cpp
+++ b/llvm/lib/CodeGen/MachineInstrBundle.cpp
@@ -312,7 +312,7 @@ llvm::AnalyzeVirtRegLanesInBundle(const MachineInstr &MI, Register Reg,
LaneBitmask UseMask, DefMask;
- for (const MachineOperand &MO: const_mi_bundle_ops(MI)) {
+ for (const MachineOperand &MO : const_mi_bundle_ops(MI)) {
if (!MO.isReg() || MO.getReg() != Reg)
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/89229
More information about the llvm-commits
mailing list