llvm.org GIT mirror llvm / 3f5734d
[CodeGen] Add begin-end iterators to MachineInstr Convert iteration over operands to range-loop. Reviewed by: @rovka, @echristo Differential Revision: https://reviews.llvm.org/D35419 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308173 91177308-0d34-0410-b5e6-96231b3b80d8 Javed Absar 3 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
152152 break;
153153 }
154154
155 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
156 const MachineOperand &MO = MI->getOperand(i);
157
155 for (const MachineOperand &MO : MI->operands()) {
158156 MCOperand MCOp;
159157 if (AP.lowerOperand(MO, MCOp)) {
160158 if (MCOp.isImm() && EncodeImms) {