Probably there are more use cases of this,
but I got triggered by the one included in this patch
Details
Details
Diff Detail
Diff Detail
Event Timeline
include/llvm/CodeGen/MachineInstr.h | ||
---|---|---|
308 ↗ | (On Diff #106643) | This looks identical to operands_begin/operands_end. I don't see a good reason for having both. |
lib/Target/ARM/ARMMCInstLower.cpp | ||
156 | Unless I'm missing something (Friday evening etc etc), you can use for (const auto &MO : MI->operands()) to the same effect. |
lib/Target/ARM/ARMMCInstLower.cpp | ||
---|---|---|
156 | Agreed, and it's more clear what you mean here. |
Unless I'm missing something (Friday evening etc etc), you can use
to the same effect.