Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/MC/MCRegisterInfo.cpp | ||
---|---|---|
138 | This still mentions MCRegUnitIterator but it gets away from the non-standard isValid style of iteration, towards the standard iterator_range style. |
llvm/lib/MC/MCRegisterInfo.cpp | ||
---|---|---|
138 |
I think this is fine. (suggestion) The default constructor of MCRegUnitIterator creates an end iterator, it can be used to simplify code a bit: ... MCRegUnitIterator IA = regunits(RegA).begin(); MCRegUnitIterator IB = regunits(RegB).begin(); MCRegUnitIterator E; ... } while (*IA < *IB ? ++IA != E : ++IB != E); | |
llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | ||
1023 | There is range_size just for this. |
llvm/lib/MC/MCRegisterInfo.cpp | ||
---|---|---|
138 | std::istreambuf_iterator behaves similarly. | |
llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | ||
1023 | Probably no one took care of implementing it. There is only a handful uses of this function. |
This still mentions MCRegUnitIterator but it gets away from the non-standard isValid style of iteration, towards the standard iterator_range style.