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 | 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. |
This looks identical to operands_begin/operands_end. I don't see a good reason for having both.
I don't know what to say about being concise vs being explicit in this context. @echristo, WDYT?