[PATCH] D22152: Hexagon: Avoid implicit iterator conversions, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 12:13:32 PDT 2016
dexonsmith created this revision.
dexonsmith added a subscriber: llvm-commits.
Avoid implicit iterator conversions from MachineInstrBundleInstr to
MachineInstr* in the Hexagon backend, mostly by preferring MachineInstr&
over MachineInstr* and switching to range-based for loops.
There's a long tail of API cleanup here, but I'm planning to leave the
rest to the Hexagon maintainers. HexagonInstrInfo defines many of its
own predicates, and most of them still take MachineInstr*. Some of
those actually check for nullptr, so I didn't feel comfortable changing
them to MachineInstr& en masse.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 80158 bytes
Desc: not available
More information about the llvm-commits