reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/ARM/ARMGenMCPseudoLowering.inc
   46       for (unsigned i = 5, e = MI->getNumOperands(); i != e; ++i)
  329       for (unsigned i = 5, e = MI->getNumOperands(); i != e; ++i)
  412       for (unsigned i = 5, e = MI->getNumOperands(); i != e; ++i)
  431       for (unsigned i = 3, e = MI->getNumOperands(); i != e; ++i)
gen/lib/Target/ARM/ARMGenSubtargetInfo.inc
21607       if (MI->getNumOperands() == 1)
21609       if (MI->getNumOperands() == 2)
21611       if (MI->getNumOperands() == 3)
21613       if (MI->getNumOperands() == 4)
21615       if (MI->getNumOperands() == 5)
21617       if (MI->getNumOperands() == 6)
21619       if (MI->getNumOperands() == 7)
21621       if (MI->getNumOperands() == 8)
21623       if (MI->getNumOperands() == 9)
21625       if (MI->getNumOperands() == 10)
21627       if (MI->getNumOperands() == 11)
21629       if (MI->getNumOperands() == 12)
21631       if (MI->getNumOperands() == 13)
21633       if (MI->getNumOperands() == 14)
21635       if (MI->getNumOperands() == 14)
21637       if (MI->getNumOperands() == 15)
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
  234       if (State.MIs[InsnID]->getNumOperands() != Expected) {
include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
  253     unsigned NumDefs = MI.getNumOperands() - 1;
  275     const unsigned NumMergeRegs = MergeI->getNumOperands() - 1;
  402     unsigned NumMergeSrcs = MergeI->getNumOperands() - 1;
  470       return MI.getOperand(MI.getNumOperands() - 1).getReg();
include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
  182       if (TmpMI->getOpcode() == Opcode && TmpMI->getNumOperands() == 3) {
  250       if (TmpMI->getOpcode() == Opcode && TmpMI->getNumOperands() == 2) {
include/llvm/CodeGen/LiveVariables.h
  215     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  251     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
include/llvm/CodeGen/MachineInstr.h
  432     assert(i < getNumOperands() && "getOperand() out of range!");
  436     assert(i < getNumOperands() && "getOperand() out of range!");
  447     for (unsigned I = getNumExplicitOperands(), E = getNumOperands();
  458     return getNumOperands() - getNumExplicitOperands();
lib/CodeGen/AggressiveAntiDepBreaker.cpp
  250   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  365   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  375   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  418   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  471   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  506     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  808   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  823   if (MI->getNumOperands() != 4)
  912   if (MI->getNumOperands() != 1)
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  178   unsigned NumOperands = MI->getNumOperands();
  249         if (OpNo >= MI->getNumOperands()) break;
  257       if (OpNo >= MI->getNumOperands() ||
  289   unsigned NumOperands = MI->getNumOperands();
  413           if (OpNo >= MI->getNumOperands()) break;
  421         if (OpNo >= MI->getNumOperands() ||
  475     assert(NumDefs != MI->getNumOperands()-2 && "No asm string?");
  498   for (unsigned i = MI->getNumOperands(); i != 0; --i) {
  527   for (unsigned I = InlineAsm::MIOp_FirstOperand, NumOps = MI->getNumOperands();
lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
   43   assert(MI.getNumOperands() == 4);
  243         assert(MI.getNumOperands() > 1 && "Invalid DBG_VALUE instruction!");
  254         assert(MI.getNumOperands() == 1 && "Invalid DBG_LABEL instruction!");
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  234   assert(MI->getNumOperands() == 4);
lib/CodeGen/AsmPrinter/EHStreamer.cpp
  174   for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
lib/CodeGen/BranchFolding.cpp
  258   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  875     for (unsigned I = 0, E = MBBICommon->getNumOperands(); I != E; ++I) {
lib/CodeGen/BreakFalseDeps.cpp
  200     e = MI->isVariadic() ? MI->getNumOperands() : MCID.getNumDefs();
lib/CodeGen/CFGuardLongjmp.cpp
   78       if (!MI.isCall() || MI.getNumOperands() < 1)
lib/CodeGen/CriticalAntiDepBreaker.cpp
  187   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  261     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  303   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  361     for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  613       for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/CodeGen/DeadMachineInstructionElim.cpp
   75   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  140       for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  159       for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/CodeGen/EarlyIfConversion.cpp
  512     for (unsigned i = 1; i != PI.PHI->getNumOperands(); i += 2) {
  604     for (unsigned i = PI.PHI->getNumOperands(); i != 1; i -= 2) {
lib/CodeGen/ExecutionDomainFix.cpp
  239                 e = MI->isVariadic() ? MI->getNumOperands() : MCID.getNumDefs();
lib/CodeGen/ExpandPostRAPseudos.cpp
  152     if (SrcMO.isUndef() || MI->getNumOperands() > 2) {
  168   if (MI->getNumOperands() > 2)
lib/CodeGen/GlobalISel/CallLowering.cpp
  261         assert(Unmerge->getNumOperands() == NumParts + 1);
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  385   for (unsigned i = 1; i < MI.getNumOperands(); i++)
  399   for (unsigned i = 1; i < MI.getNumOperands() - 1; i++) {
  437   Info.IsTailCall = MI.getOperand(MI.getNumOperands() - 1).getImm() == 1 &&
  916     SrcRegs.resize(MI.getNumOperands() / 2);
  918     for (unsigned i = 1; i < MI.getNumOperands(); i += 2) {
  930       for (unsigned j = 1; j < MI.getNumOperands(); j += 2)
 1171   unsigned NumOps = MI.getNumOperands();
 1172   unsigned NumSrc = MI.getNumOperands() - 1;
 1235   for (int I = 1, E = MI.getNumOperands(); I != E; ++I) {
 1241       for (int J = 0, JE = Unmerge->getNumOperands() - 1; J != JE; ++J)
 1281   unsigned NumDst = MI.getNumOperands() - 1;
 1762     for (unsigned I = 1; I < MI.getNumOperands(); I += 2) {
 1855     for (unsigned I = 1, E = MI.getNumOperands(); I != E; ++I)
 1881     for (int I = 1, E = MI.getNumOperands(); I != E; ++I)
 2317   const unsigned NumOps = MI.getNumOperands() - 1;
 2341       for (unsigned I = 1, E = MI.getNumOperands(); I != E; ++I) {
 2357     for (unsigned I = 1, E = MI.getNumOperands(); I != E; ++I) {
 2444   for (unsigned I = 1, E = MI.getNumOperands(); I != E; ++I) {
 2730   for (unsigned I = 1, E = MI.getNumOperands(); I != E; I += 2) {
 2764   const int NumDst = MI.getNumOperands() - 1;
 2782   const int NumUnmerge = Unmerge->getNumOperands() - 1;
 3246   for (unsigned I = 1, E = MI.getNumOperands(); I != E; I += 2) {
 3327     int NumDst = MI.getNumOperands() - 1;
 3593   assert(MI.getNumOperands() == 3 && TypeIdx == 0);
 4071   const unsigned NumDst = MI.getNumOperands() - 1;
lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  393   assert(TypeIdx < MI.getNumOperands() && "Unexpected TypeIdx");
  398     return MRI.getType(MI.getOperand(MI.getNumOperands() - 1).getReg());
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
  163   unsigned NumOperandsForMapping = IsCopyLike ? 1 : MI.getNumOperands();
  177   for (unsigned OpIdx = 0, EndIdx = MI.getNumOperands(); OpIdx != EndIdx;
  595   assert(NumOperands == (isCopyLike(MI) ? 1 : MI.getNumOperands()) &&
lib/CodeGen/InlineSpiller.cpp
  557     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  882     for (unsigned i = FoldMI->getNumOperands(); i; --i) {
  925   assert(Def.getNumOperands() == 1 &&
 1521       for (unsigned i = RMEnt->getNumOperands(); i; --i) {
lib/CodeGen/LiveDebugValues.cpp
   86   assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE");
  228       assert(MI.getNumOperands() == 4 && "malformed DBG_VALUE");
lib/CodeGen/LiveDebugVariables.cpp
  601   if (MI.getNumOperands() != 4 ||
  660   if (MI.getNumOperands() != 1 || !MI.getOperand(0).isMetadata()) {
lib/CodeGen/LiveRangeEdit.cpp
  111   for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) {
  350     for (unsigned i = MI->getNumOperands(); i; --i) {
lib/CodeGen/LiveVariables.cpp
  214   for (unsigned i = 0, e = LastDef->getNumOperands(); i != e; ++i) {
  504   unsigned NumOperandsToProcess = MI.getNumOperands();
  690   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  713       for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2)
  776     for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2)
lib/CodeGen/LocalStackSlotAllocation.cpp
  318       for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  365     for (unsigned f = MI.getNumOperands(); idx != f; ++idx) {
  373     assert(idx < MI.getNumOperands() && "Cannot find FI operand");
lib/CodeGen/MIRCanonicalizerPass.cpp
  168     for (unsigned i = 1; i < II->getNumOperands(); i++) {
  184     if (II->getNumOperands() == 0)
  196     for (unsigned i = 1; i < II->getNumOperands(); i++) {
lib/CodeGen/MIRPrinter.cpp
  714     assert(MI.getNumOperands() == 1 && "Expected 1 operand in CFI instruction");
  718   unsigned I = 0, E = MI.getNumOperands();
lib/CodeGen/MIRVRegNamerUtils.cpp
   60     if (MI->getNumOperands() > 0 && MI->getOperand(0).isReg()) {
  140       for (unsigned I = 1, E = Def->getNumOperands(); I != E; ++I) {
  274     for (unsigned i = 1; i < candidate->getNumOperands(); i++) {
  288     for (unsigned i = 0; i < candidate->getNumOperands(); i++) {
lib/CodeGen/MachineBasicBlock.cpp
 1029       for (unsigned ni = 1, ne = I->getNumOperands(); ni != ne; ni += 2) {
 1206     for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
 1219     for (unsigned i = 2, e = MI.getNumOperands() + 1; i != e; i += 2) {
lib/CodeGen/MachineCSE.cpp
  594     for (unsigned i = 0, e = MI->getNumOperands(); NumDefs && i != e; ++i) {
lib/CodeGen/MachineCopyPropagation.cpp
  388   for (unsigned OpIdx = 0, OpEnd = MI.getNumOperands(); OpIdx < OpEnd;
lib/CodeGen/MachineInstr.cpp
  138   CapOperands = OperandCapacity::get(MI.getNumOperands());
  218   unsigned OpNo = getNumOperands();
  244   if (!OldOperands || OldCap.getSize() == getNumOperands()) {
  296   assert(OpNo < getNumOperands() && "Invalid operand number");
  301   for (unsigned i = OpNo + 1, e = getNumOperands(); i != e; ++i)
  589       Other.getNumOperands() != getNumOperands())
  589       Other.getNumOperands() != getNumOperands())
  614   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
  704   for (unsigned I = NumOperands, E = getNumOperands(); I != E; ++I) {
  723   for (unsigned I = NumDefs, E = getNumOperands(); I != E; ++I) {
  786   assert(OpIdx < getNumOperands() && "OpIdx out of range");
  794   for (unsigned i = InlineAsm::MIOp_FirstOperand, e = getNumOperands(); i < e;
  932   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
  945   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
  969   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
  995   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
 1027     for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
 1089     for (unsigned i = TiedMax - 1, e = getNumOperands(); i != e; ++i) {
 1102   for (unsigned i = InlineAsm::MIOp_FirstOperand, e = getNumOperands(); i < e;
 1358   assert(getNumOperands() >= 3 &&
 1362   for (unsigned i = 3, e = getNumOperands(); i < e; i += 2)
 1400   for (unsigned i = MI.getDesc().getNumOperands(), e = MI.getNumOperands();
 1410   for (unsigned I = 0, E = getNumOperands(); I < E; ++I) {
 1483     assert(getNumOperands() == 1 && "Expected 1 operand in CFI instruction");
 1496   unsigned e = getNumOperands();
 1589   for (unsigned i = StartOp, e = getNumOperands(); i != e; ++i) {
 1792   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
 1871   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
 1980   HashComponents.reserve(MI->getNumOperands() + 1);
 1995   for (unsigned i = getNumOperands(); i != 0; --i) {
lib/CodeGen/MachineInstrBundle.cpp
   61           for (unsigned i = 0, e = MII->getNumOperands(); i != e; ++i) {
  148     for (unsigned i = 0, e = MII->getNumOperands(); i != e; ++i) {
lib/CodeGen/MachineLICM.cpp
  918       (MI.getNumOperands() == 0))
 1102     for (unsigned i = 0, e = UseMI.getNumOperands(); i != e; ++i) {
 1129   for (unsigned i = 0, e = MI.getNumOperands(); NumDefs && i != e; ++i) {
 1375     for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/CodeGen/MachinePipeliner.cpp
  357     for (unsigned i = 1, n = PI.getNumOperands(); i != n; i += 2) {
  587   for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2)
  598   for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2)
 2192     for (unsigned i = 1, e = Def->getNumOperands(); i < e; i += 2)
 2472     for (unsigned i = 0, e = MI->getNumOperands(); i < e; ++i) {
 2628   for (unsigned i = 0, e = Def->getNumOperands(); i != e; ++i) {
 2765     for (unsigned i = 0, e = MI->getNumOperands(); i < e; ++i) {
lib/CodeGen/MachineRegisterInfo.cpp
  231     unsigned NumOps = MI->getNumOperands();
lib/CodeGen/MachineSSAUpdater.cpp
   97     for (unsigned i = 1, e = I->getNumOperands(); i != e; i += 2) {
  213   for (unsigned i = 1, e = MI->getNumOperands(); i != e; i += 2) {
  261       : PHI(P), idx(PHI->getNumOperands()) {}
  336     if (PHI && PHI->getNumOperands() <= 1)
lib/CodeGen/MachineSink.cpp
  438   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  637   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  878   for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
 1184   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/CodeGen/MachineTraceMetrics.cpp
  687   assert(UseMI.isPHI() && UseMI.getNumOperands() % 2 && "Bad PHI");
  688   for (unsigned i = 1; i != UseMI.getNumOperands(); i += 2) {
lib/CodeGen/MachineVerifier.cpp
  438       for (unsigned I = 0, E = MBBI->getNumOperands(); I != E; ++I) {
  853   if (MI->getNumOperands() < 2) {
  871   for (unsigned e = MI->getNumOperands(); OpNo < e; OpNo += NumOps) {
  879   if (OpNo > MI->getNumOperands())
  883   if (OpNo < MI->getNumOperands() && MI->getOperand(OpNo).isMetadata())
  887   for (unsigned e = MI->getNumOperands(); OpNo < e; ++OpNo) {
  922   unsigned NumOps = MI->getNumOperands();
  958   for (unsigned I = 0; I < MI->getNumOperands(); ++I) {
  965   if (MI->getNumOperands() < MCID.getNumOperands())
  976     if (MI->getNumOperands() < MCID.getNumOperands())
 1180     const unsigned NumOps = MI->getNumOperands();
 1193     LLT SrcTy = MRI->getType(MI->getOperand(MI->getNumOperands()-1).getReg());
 1195     for (unsigned i = 0; i < MI->getNumOperands()-1; ++i) {
 1200         (DstTy.getSizeInBits() * (MI->getNumOperands() - 1))) {
 1219     if (DstTy.getNumElements() != MI->getNumOperands() - 1)
 1222     for (unsigned i = 2; i < MI->getNumOperands(); ++i) {
 1238     for (unsigned i = 2; i < MI->getNumOperands(); ++i) {
 1258     for (unsigned i = 2; i < MI->getNumOperands(); ++i) {
 1264         SrcTy.getNumElements() * (MI->getNumOperands() - 1))
 1373       if (MI->getNumOperands() != 5)
 1377       if (MI->getNumOperands() != 5)
 1381       if (MI->getNumOperands() != 5)
 1482   if (MI->getNumOperands() < MCID.getNumOperands()) {
 1485            << MI->getNumOperands() << " given.\n";
 2226     for (unsigned I = 1, E = Phi.getNumOperands(); I != E; I += 2) {
lib/CodeGen/ModuloSchedule.cpp
   41   for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2)
   52   for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2)
   60   for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2)
   76     for (unsigned i = 0, e = MI->getNumOperands(); i < e; ++i) {
  623     for (unsigned i = 0, e = BBI->getNumOperands(); i != e; ++i) {
  836     for (unsigned i = 1, e = MI.getNumOperands(); i != e; i += 2)
  984     for (unsigned i = 0, e = OldMI->getNumOperands(); i != e; ++i) {
 1025   for (unsigned i = 0, e = NewMI->getNumOperands(); i != e; ++i) {
 1064     for (unsigned i = 1, e = Def->getNumOperands(); i < e; i += 2)
lib/CodeGen/OptimizePHIs.cpp
  111   for (unsigned i = 1; i != MI->getNumOperands(); i += 2) {
lib/CodeGen/PHIElimination.cpp
  232   for (unsigned I = 1, E = MPhi.getNumOperands(); I != E; I += 2) {
  249   unsigned NumSrcs = (MPhi->getNumOperands() - 1) / 2;
  368   for (unsigned i = 1; i != MPhi->getNumOperands(); i += 2)
  556       for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2)
  574     for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) {
lib/CodeGen/PeepholeOptimizer.cpp
 1047       if (CurrentSrcIdx >= CopyLike.getNumOperands())
 1069     if ((CurrentSrcIdx & 1) != 1 || CurrentSrcIdx > CopyLike.getNumOperands())
 1566   for (unsigned Idx = 1; Idx < PHI.getNumOperands(); Idx += 2) {
 1756         for (unsigned i = MIDesc.getNumDefs(); i != MI->getNumOperands();
 1813   assert(Def->getNumOperands() - Def->getNumImplicitOperands() == 2 &&
 1844   unsigned SrcIdx = Def->getNumOperands();
 1862   if (SrcIdx >= Def->getNumOperands())
 2035   for (unsigned i = 1, e = Def->getNumOperands(); i < e; i += 2) {
lib/CodeGen/ProcessImplicitDefs.cpp
  125   for (unsigned i = MI->getNumOperands() - 1; i; --i)
lib/CodeGen/PrologEpilogInserter.cpp
 1198     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/CodeGen/ReachingDefAnalysis.cpp
  103                 e = MI->isVariadic() ? MI->getNumOperands() : MCID.getNumDefs();
lib/CodeGen/RegAllocFast.cpp
  919   for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
  945   for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
 1038   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1150   unsigned DefOpEnd = MI.getNumOperands();
lib/CodeGen/RegisterCoalescer.cpp
 1311   ImplicitOps.reserve(CopyMI->getNumOperands() -
 1314                 E = CopyMI->getNumOperands();
 1334                 e = NewMI.getNumOperands();
 1553       for (unsigned i = CopyMI->getNumOperands(); i != 0; --i) {
lib/CodeGen/RegisterScavenging.cpp
  454     assert(i < MI.getNumOperands() && "Instr doesn't have FrameIndex operand!");
lib/CodeGen/ScheduleDAGInstrs.cpp
  407       for (int I = OperIdx + 1, E = MI->getNumOperands(); I != E; ++I) {
  837     for (unsigned j = 0, n = MI.getNumOperands(); j != n; ++j) {
  850     for (unsigned j = 0, n = MI.getNumOperands(); j != n; ++j) {
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  345     unsigned Idx = MIB->getNumOperands();
  726       AddOperand(MIB, Op, (*MIB).getNumOperands(), &II, VRBaseMap,
 1081       GroupIdx.push_back(MIB->getNumOperands());
lib/CodeGen/StackMaps.cpp
   50   assert(getVarIdx() <= MI->getNumOperands() &&
   58   unsigned CheckStartIdx = 0, e = MI->getNumOperands();
   74   unsigned ScratchIdx = StartIdx, e = MI->getNumOperands();
lib/CodeGen/StackSlotColoring.cpp
  165       for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  399   for (unsigned i = 0, ee = MI.getNumOperands(); i != ee; ++i) {
lib/CodeGen/TailDuplicator.cpp
  106         for (unsigned i = 1, e = MI->getNumOperands(); i != e; i += 2) {
  122       for (unsigned i = 1, e = MI->getNumOperands(); i != e; i += 2) {
  300   for (unsigned i = 1, e = MI->getNumOperands(); i != e; i += 2)
  314     for (unsigned i = 1, e = MI.getNumOperands(); i != e; i += 2) {
  364   if (MI->getNumOperands() == 1)
  383     for (unsigned i = 0, e = NewMI.getNumOperands(); i != e; ++i) {
  470       for (unsigned i = 1, e = MI.getNumOperands(); i != e; i += 2) {
  485         for (unsigned i = MI.getNumOperands() - 2; i != Idx; i -= 2) {
lib/CodeGen/TargetInstrInfo.cpp
  331   for (unsigned j = 0, i = 0, e = MI.getNumOperands(); i != e; ++i) {
  436   if (MI.getNumOperands() != 2)
  508   for (unsigned i = StartIdx; i < MI.getNumOperands(); ++i) {
  888   if (!MI.getNumOperands() || !MI.getOperand(0).isReg())
  924   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1178   for (unsigned OpIdx = 1, EndOpIdx = MI.getNumOperands(); OpIdx != EndOpIdx;
lib/CodeGen/TargetLoweringBase.cpp
 1038   for(unsigned OperIdx = 0; OperIdx != MI->getNumOperands(); ++OperIdx) {
 1070     for (unsigned i = OperIdx + 1; i != MI->getNumOperands(); ++i)
 1092     OperIdx += (MIB->getNumOperands() - MI->getNumOperands()) - 1;
 1092     OperIdx += (MIB->getNumOperands() - MI->getNumOperands()) - 1;
 1106   for (unsigned OpIdx = 0; OpIdx != MI.getNumOperands(); ++OpIdx)
 1121   for (unsigned OpIdx = 0; OpIdx != MI.getNumOperands(); ++OpIdx)
lib/CodeGen/TwoAddressInstructionPass.cpp
  298     for (unsigned i = 0, e = OtherMI.getNumOperands(); i != e; ++i) {
  503   for (unsigned i = 0, NumOps = MI.getNumOperands(); i != NumOps; ++i) {
 1398             for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1465   unsigned NumOps = MI->getNumOperands();
 1545     for (unsigned i = 0; i != MI->getNumOperands(); ++i)
 1803       !(MI.getNumOperands() & 1)) {
 1811     for (unsigned i = 1, e = MI.getNumOperands(); i < e; i += 2)
 1816   for (unsigned i = 1, e = MI.getNumOperands(); i < e; i += 2) {
 1864     for (int j = MI.getNumOperands() - 1, ee = 0; j > ee; --j)
lib/CodeGen/UnreachableBlockElim.cpp
  134           for (unsigned i = start->getNumOperands() - 1; i >= 2; i-=2)
  167       for (unsigned i = phi->getNumOperands() - 1; i >= 2; i-=2)
  174       if (phi->getNumOperands() == 3) {
lib/CodeGen/VirtRegMap.cpp
  386   if (MI.getOperand(1).isUndef() || MI.getNumOperands() > 2) {
lib/Target/AArch64/AArch64AsmPrinter.cpp
  668   unsigned NOps = MI->getNumOperands();
lib/Target/AArch64/AArch64CondBrTuning.cpp
   91     for (unsigned I = MI.getNumExplicitOperands(), E = MI.getNumOperands();
  107   for (unsigned I = 1, E = MI.getNumOperands(); I != E; ++I)
lib/Target/AArch64/AArch64ConditionalCompares.cpp
  221     for (unsigned oi = 1, oe = I.getNumOperands(); oi != oe; oi += 2) {
  246     for (unsigned oi = I.getNumOperands(); oi > 2; oi -= 2) {
lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
   95   for (unsigned i = Desc.getNumOperands(), e = OldMI.getNumOperands(); i != e;
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  742       for (unsigned OpI = 0, OpE = MI.getNumOperands(); OpI < OpE; ++OpI) {
lib/Target/AArch64/AArch64FrameLowering.cpp
  490   unsigned ImmIdx = MBBI->getNumOperands() - 1;
  606   unsigned ImmIdx = MBBI->getNumOperands() - 1;
  698   for (unsigned OpndEnd = MBBI->getNumOperands() - 1; OpndIdx < OpndEnd;
 1426     const MachineOperand &OffsetOp = Pop->getOperand(Pop->getNumOperands() - 1);
lib/Target/AArch64/AArch64InstrInfo.cpp
  991   assert(MI.getNumOperands() >= 2 && "All AArch64 cmps should have 2 operands");
 1056   for (unsigned OpIdx = 0, EndIdx = Instr.getNumOperands(); OpIdx < EndIdx;
 3610     assert(MI->getNumOperands() >= 4 && MI->getOperand(0).isReg() &&
lib/Target/AArch64/AArch64InstructionSelector.cpp
 1366   if (I.getNumOperands() != I.getNumExplicitOperands()) {
 2717   if (I.getNumOperands() != 3)
 2906   unsigned NumElts = I.getNumOperands() - 1;
 2951   unsigned NumElts = I.getNumOperands() - 1;
lib/Target/AArch64/AArch64RegisterBankInfo.cpp
  285     if (MI.getNumOperands() != 3)
  306     if (MI.getNumOperands() != 2)
  342     if (MI.getNumOperands() != 2)
  424   unsigned NumOperands = MI.getNumOperands();
  612   unsigned NumOperands = MI.getNumOperands();
  768     LLT SrcTy = MRI.getType(MI.getOperand(MI.getNumOperands()-1).getReg());
  775       for (unsigned Idx = 0, NumOperands = MI.getNumOperands();
  830       unsigned NumOperands = MI.getNumOperands();
lib/Target/AArch64/AArch64RegisterInfo.cpp
  337     assert(i < MI->getNumOperands() &&
  436     assert(i < MI.getNumOperands() && "Instr doesn't have FrameIndex operand!");
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
  325         CurrentMI->getNumOperands() == 3 &&
  437   if (MI.getNumOperands() == 5) {
  454   } else if (MI.getNumOperands() == 4) {
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  481   for (int I = 0, E = MI.getNumOperands() - 1; I != E; ++I) {
  501   const int NumDst = MI.getNumOperands() - 1;
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
 2066   for (int I = 0, E = Unmerge->getNumOperands() - 1; I != E; ++I)
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  304   return (PHI.getNumOperands() - 1) / 2;
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  184   SmallVector<const ValueMapping *, 10> Operands(MI.getNumOperands());
  830           unsigned NumPieces = Unmerge->getNumOperands() - 1;
 1124   for (int I = NumDefs, NumOps = MI.getNumOperands(); I != NumOps; ++I) {
 1164   for (int I = 0, E = Unmerge->getNumOperands() - 1; I != E; ++I)
 1598     assert(MI.getNumOperands() == 3 && OpdMapper.getVRegs(0).empty());
 1906   for (unsigned i = 0, e = MI.getNumOperands();i != e; ++i) {
 1925   SmallVector<const ValueMapping*, 8> OpdsMapping(MI.getNumOperands());
 1927   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1933                                MI.getNumOperands());
 1940   SmallVector<const ValueMapping*, 8> OpdsMapping(MI.getNumOperands());
 1958   for (unsigned e = MI.getNumOperands(); OpdIdx != e; ++OpdIdx) {
 1969                                MI.getNumOperands());
 1976   SmallVector<const ValueMapping*, 8> OpdsMapping(MI.getNumOperands());
 1978   for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
 1988                                MI.getNumOperands());
 1999   const int NumOps = MI.getNumOperands();
 2063       1, 1, getOperandsMapping(OpdsMapping), MI.getNumOperands());
 2121     for (unsigned I = 1, E = MI.getNumOperands(); I != E; I += 2) {
 2146     for (unsigned I = 1, E = MI.getNumOperands(); I != E; I += 2) {
 2188   SmallVector<const ValueMapping*, 8> OpdsMapping(MI.getNumOperands());
 2392     for (unsigned i = 1, e = MI.getNumOperands(); i != e; ++i)
 2547     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 2978                                MI.getNumOperands());
lib/Target/AMDGPU/GCNDPPCombine.cpp
  468       unsigned OpNo, E = OrigMI.getNumOperands();
lib/Target/AMDGPU/GCNHazardRecognizer.cpp
  773   for (unsigned I = InlineAsm::MIOp_FirstOperand, E = IA->getNumOperands();
lib/Target/AMDGPU/R600AsmPrinter.cpp
   55       unsigned numOperands = MI.getNumOperands();
lib/Target/AMDGPU/R600ISelLowering.cpp
  313       for (unsigned i = 1, e = MI.getNumOperands(); i < e; ++i) {
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
   77     for (unsigned i = 1, e = Instr->getNumOperands(); i < e; i+=2) {
lib/Target/AMDGPU/SIAddIMGInit.cpp
  171           MI.tieOperands(DstIdx, MI.getNumOperands() - 1);
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
  155   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  287   for (unsigned I = 1, N = MI.getNumOperands(); I != N; I += 2) {
  810   for (unsigned i = 1; i < MI.getNumOperands(); i += 2) {
lib/Target/AMDGPU/SIFixupVectorISel.cpp
  104       if (DefInst->getNumOperands() != 5)
lib/Target/AMDGPU/SIFoldOperands.cpp
  274     for (unsigned I = MI->getNumOperands() - 1; I > 0; --I)
  694         for (unsigned I = UseMI->getNumOperands() - 1; I > 0; --I)
  934   for (unsigned I = MI.getNumOperands() - 1; I >= NumOps; --I)
lib/Target/AMDGPU/SIISelLowering.cpp
 3818     for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I)
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
  571         for (unsigned I = 0, E = Inst.getNumOperands(); I != E; ++I) {
  618         for (unsigned I = 0, E = Inst.getNumOperands(); I != E; ++I) {
  627       for (unsigned I = 0, E = Inst.getNumOperands(); I != E; ++I) {
  648     for (unsigned I = 0, E = Inst.getNumOperands(); I != E; ++I) {
  987       for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
 1023       for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
lib/Target/AMDGPU/SIInstrInfo.cpp
  138     return MI.getNumOperands() == MI.getDesc().getNumOperands();
 2262     return MI.getNumOperands() == NumOps;
 3213     for (unsigned I = InlineAsm::MIOp_FirstOperand, E = MI.getNumOperands();
 3583     if (MI.getNumOperands() < StaticNumOps + NumImplicitOps) {
 3971     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 4541     for (unsigned i = 1, e = MI.getNumOperands(); i != e; i += 2) {
 4577     for (unsigned I = 1, E = MI.getNumOperands(); I != E; I += 2) {
 4602       for (unsigned I = 1, E = MI.getNumOperands(); I != E; I += 2) {
 5012     for (unsigned i = Inst.getNumOperands() - 1; i > 0; --i) {
 5082         for (unsigned I = Inst.getNumOperands() - 1; I != 0; --I)
 6381   for (unsigned I = 0, E = (MI.getNumOperands() - 1)/ 2; I < E; ++I)
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
 1051   for (unsigned I = 1, E = (*CI.I).getNumOperands(); I != E; ++I) {
 1469       || Def->getNumOperands() != 5)
lib/Target/AMDGPU/SILowerI1Copies.cpp
  574     for (unsigned i = 1; i < MI->getNumOperands(); i += 2) {
  575       assert(i + 1 < MI->getNumOperands());
lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
  328       if (Term.getOpcode() != AMDGPU::S_ENDPGM || Term.getNumOperands() != 1)
lib/Target/AMDGPU/SIPeepholeSDWA.cpp
  516                  MI.getNumOperands() - 1);
 1137     SDWAInst->tieOperands(PreserveDstIdx, SDWAInst->getNumOperands() - 1);
lib/Target/AMDGPU/SIShrinkInstructions.cpp
  174          MI.getDesc().getNumImplicitDefs(), e = MI.getNumOperands();
  279     for (unsigned i = LWEIdx + 1, e = MI.getNumOperands(); i != e; ++i) {
lib/Target/ARC/ARCMCInstLower.cpp
  107   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/ARM/A15SDOptimizer.cpp
  371        for (unsigned I = 1, E = MI->getNumOperands(); I != E; I += 2) {
lib/Target/ARM/ARMAsmPrinter.cpp
  389       if (RegOp >= MI->getNumOperands())
 1118       for (unsigned i = StartOp, NumOps = MI->getNumOperands() - NumOffset;
lib/Target/ARM/ARMBaseInstrInfo.cpp
  277     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  548   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  683   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
 1551   for(unsigned I = 5; I < MI->getNumOperands(); ++I)
 1760     if (MI0.getNumOperands() != MI1.getNumOperands())
 1760     if (MI0.getNumOperands() != MI1.getNumOperands())
 1798     if (MI0.getNumOperands() != MI1.getNumOperands())
 1798     if (MI0.getNumOperands() != MI1.getNumOperands())
 1817     for (unsigned i = 3, e = MI0.getNumOperands(); i != e; ++i) {
 2191   for (unsigned i = 1, e = MI->getNumOperands(); i != e; ++i) {
 2282   NewMI->tieOperands(0, NewMI->getNumOperands() - 1);
 2455   for (int i = MI->getNumOperands() - 1; i >= RegListIdx; --i) {
 2509   for (int i = MI->getNumOperands() - 1; i >= RegListIdx; --i)
 3056     for (unsigned IO = 0, EO = Instr.getNumOperands();
 3679     unsigned NumRegs = MI.getNumOperands() - Desc.getNumOperands();
 3715     unsigned NumRegs = MI.getNumOperands() - Desc.getNumOperands() + 1;
 3790   for (unsigned i = 1, sz = MI.getNumOperands(); i < sz; ++i) {
 3801   return MI.getNumOperands() + 1 - MI.getDesc().getNumOperands();
 4748     for (int i = 2, e = MI.getNumOperands(); i < e; ++i) {
 5236   if (MI->getNumOperands() < 4)
lib/Target/ARM/ARMBaseRegisterInfo.cpp
  551     assert(i < MI->getNumOperands() &&"Instr doesn't have FrameIndex operand!");
  670     assert(i < MI.getNumOperands() && "Instr doesn't have FrameIndex operand!");
  689     assert(i+1 < MI->getNumOperands() && "Instr doesn't have FrameIndex operand!");
lib/Target/ARM/ARMConstantIslandPass.cpp
  769       for (unsigned op = 0, e = I.getNumOperands(); op != e; ++op)
 1160       for (unsigned j = 0, e = UserMI->getNumOperands(); j != e; ++j)
 1542   for (unsigned i = 0, e = UserMI->getNumOperands(); i != e; ++i)
 2060     for (unsigned K = 0, E = I->getNumOperands(); K != E; ++K) {
 2079     for (unsigned K = 0, E = I->getNumOperands(); K != E; ++K) {
 2140     for (unsigned K = 0, E = J->getNumOperands(); K != E; ++K) {
lib/Target/ARM/ARMExpandPseudoInsts.cpp
   95   for (unsigned i = Desc.getNumOperands(), e = OldMI.getNumOperands();
 1205       for (unsigned i = 1, e = MBBI->getNumOperands(); i != e; ++i)
 1950       for (unsigned i = 1; i < MI.getNumOperands(); ++i) MIB.add(MI.getOperand(i));
lib/Target/ARM/ARMFastISel.cpp
 2920   if (MI->getNumOperands() < 3 || !MI->getOperand(2).isImm())
lib/Target/ARM/ARMFrameLowering.cpp
  151     for (int i = 5, e = MI.getNumOperands(); i != e; ++i)
  209   for (int i = MI.getNumOperands() - 1; i >= 4; --i)
 1517       for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/Target/ARM/ARMISelLowering.cpp
10470     for (unsigned i = 0; i < MI.getNumOperands(); ++i)
10755       for (unsigned i = MI.getNumOperands(); i--;) {
10782   for (unsigned i = MCID->getNumOperands(), e = MI.getNumOperands(); i != e;
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
  472     return (MI->getNumOperands() - MI->getDesc().getNumOperands() + 1) * 4;
  475     return (MI->getNumOperands() - MI->getDesc().getNumOperands() + 1) * 8;
 1273   for (unsigned i = 2, e = MI->getNumOperands(); i != e; ++i)
 1301       for (unsigned i = 2, e = MI->getNumOperands(); i != e; ++i)
 1323   for (unsigned OpNum = 3, e = MI->getNumOperands(); OpNum != e; ++OpNum)
 1943       MachineOperand &MO = PrevMI.getOperand(PrevMI.getNumOperands() - 1);
 2120     for (unsigned j = 0, NumOps = I->getNumOperands(); j != NumOps; ++j) {
lib/Target/ARM/ARMRegisterBankInfo.cpp
  226   unsigned NumOperands = MI.getNumOperands();
lib/Target/ARM/MLxExpansionPass.cpp
  153       for (unsigned i = 1, e = DefMI->getNumOperands(); i < e; i += 2) {
lib/Target/ARM/Thumb2InstrInfo.cpp
  492       while (MI.getNumOperands() > FrameRegIdx+1);
  520         (!HasCCOut || MI.getOperand(MI.getNumOperands()-1).getReg() == 0)) {
  527         MI.RemoveOperand(MI.getNumOperands()-1);
lib/Target/ARM/Thumb2SizeReduction.cpp
  379   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  505     for (unsigned i = 3; i < MI->getNumOperands(); ++i) {
  604   for (unsigned e = MI->getNumOperands(); OpNum != e; ++OpNum)
  830   for (unsigned i = 1, e = MI->getNumOperands(); i != e; ++i) {
  937   for (unsigned i = 1, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/ARM/ThumbRegisterInfo.cpp
  341   for (unsigned e = MI.getNumOperands(); i != e; ++i)
  443     assert(i < MI.getNumOperands() && "Instr doesn't have FrameIndex operand!");
lib/Target/BPF/BPFAsmPrinter.cpp
  122   assert(OpNum + 1 < MI->getNumOperands() && "Insufficient operands");
lib/Target/BPF/BPFMCInstLower.cpp
   50   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/BPF/BPFMIPeephole.cpp
   89     for (unsigned i = 1, e = DefInsn->getNumOperands(); i < e; i += 2) {
  416         for (unsigned i = 1, e = DefMI->getNumOperands(); i < e; i += 2) {
lib/Target/BPF/BPFRegisterInfo.cpp
   77     assert(i < MI.getNumOperands() && "Instr doesn't have FrameIndex operand!");
lib/Target/Hexagon/BitTracker.cpp
  814   for (unsigned i = 1, n = PI.getNumOperands(); i < n; i += 2) {
  854     for (unsigned i = 0, n = MI.getNumOperands(); i < n; ++i) {
lib/Target/Hexagon/HexagonBitSimplify.cpp
 2947   for (unsigned i = 1, n = P.getNumOperands(); i < n; i += 2) {
 3010   for (unsigned i = 0, n = MI->getNumOperands(); i < n; ++i) {
 3087     for (unsigned j = 0, m = SI->getNumOperands(); j < m; ++j) {
lib/Target/Hexagon/HexagonBitTracker.cpp
  166   RegisterRefs(const MachineInstr &MI) : Vector(MI.getNumOperands()) {
lib/Target/Hexagon/HexagonConstExtenders.cpp
 1630     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1875       assert(P.first->getNumOperands() > J+1 &&
 1916   for (unsigned i = 0, n = MI.getNumOperands(); i != n; ++i)
lib/Target/Hexagon/HexagonConstPropagation.cpp
  643   for (unsigned i = 1, n = PN.getNumOperands(); i < n; i += 2) {
  854     int N = PN->getNumOperands()-2;
 1920   if (MI.getNumOperands() == 0 || !MI.getOperand(0).isReg())
 2336   unsigned NumOp = MI.getNumOperands();
 2503   while (MI.getNumOperands() > 0)
 2622   if (MI.getNumOperands() != 3)
 3126   unsigned NumOp = BrI.getNumOperands();
 3155       while (BrI.getNumOperands() > 0)
lib/Target/Hexagon/HexagonCopyToCombine.cpp
  238   for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
  404       for (unsigned OpdIdx = 0, OpdE = MI.getNumOperands(); OpdIdx != OpdE;
lib/Target/Hexagon/HexagonEarlyIfConv.cpp
  462     for (unsigned i = 1, e = MI.getNumOperands(); i != e; i += 2) {
  818     for (int i = PN->getNumOperands()-2; i > 0; i -= 2) {
  989     assert(PN->getNumOperands() == 3 && "Invalid phi node");
lib/Target/Hexagon/HexagonExpandCondsets.cpp
  318     for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  496     for (unsigned i = 0, e = DefI->getNumOperands(); i != e; ++i) {
  521       DefI->tieOperands(P.second, DefI->getNumOperands()-1);
  696       while (MI.getNumOperands() > 1)
  697         MI.RemoveOperand(MI.getNumOperands()-1);
  874   unsigned Ox = 0, NP = MI.getNumOperands();
lib/Target/Hexagon/HexagonFixupHwLoops.cpp
  193   for (unsigned i = 0; i < MII->getNumOperands(); ++i)
lib/Target/Hexagon/HexagonFrameLowering.cpp
 2115       for (unsigned i = 0, n = In.getNumOperands(); i < n; ++i) {
lib/Target/Hexagon/HexagonGenInsert.cpp
  606       for (unsigned i = 0, n = MI->getNumOperands(); i < n; ++i) {
  723   for (unsigned i = 0, n = MI->getNumOperands(); i < n; ++i) {
  736   for (unsigned i = 0, n = MI->getNumOperands(); i < n; ++i) {
lib/Target/Hexagon/HexagonGenPredicate.cpp
  372   unsigned NumOps = MI->getNumOperands();
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  434     for (unsigned i = 1, n = Phi->getNumOperands(); i < n; i += 2) {
  606   for (unsigned i = 1, n = IV_Phi->getNumOperands(); i < n; i += 2) {
 1036   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
 1056     for (unsigned j = 0, f = OnePhi->getNumOperands(); j != f; ++j) {
 1091     for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
 1341     for (unsigned i = 0, n = In->getNumOperands(); i < n; ++i) {
 1392   for (int i = 1, n = Phi->getNumOperands(); i < n; i += 2)
 1633     for (unsigned i = 1, n = Phi->getNumOperands(); i < n; i += 2) {
 1718   for (unsigned i = 0, n = PredDef->getNumOperands(); i < n; ++i) {
 1767         for (unsigned i = 1, n = PredDef->getNumOperands(); i < n; ++i) {
 1834       for (unsigned i = 0, n = PredDef->getNumOperands(); i < n; ++i) {
 1913       for (unsigned i = 1, n = PN->getNumOperands(); i < n; i += 2) {
 1928       for (int i = PN->getNumOperands()-2; i > 0; i -= 2) {
 1949       for (unsigned i = 1, n = PN->getNumOperands(); i < n; i += 2) {
lib/Target/Hexagon/HexagonHazardRecognizer.cpp
   50       MachineOperand &MO = MI->getOperand(MI->getNumOperands() - 1);
lib/Target/Hexagon/HexagonInstrInfo.cpp
  190   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1580   unsigned NOp = 0, NumOps = MI.getNumOperands();
 1598   while (unsigned n = MI.getNumOperands())
 1600   for (unsigned i = 0, n = T->getNumOperands(); i < n; ++i)
 1621   for (unsigned oper = 0; oper < MI.getNumOperands(); ++oper) {
 2618     int N = MI2.getNumOperands();
 2964       Second.getOperand(Second.getNumOperands() - 1);
 2967     for (unsigned i = 0, e = First.getNumOperands(); i < e; ++i) {
 4314       assert(NumDefs != MI.getNumOperands()-2 && "No asm string?");
 4372   int TargetPos = MI.getNumOperands() - 1;
lib/Target/Hexagon/HexagonMCInstLower.cpp
  112   for (unsigned i = 0, e = MI->getNumOperands(); i < e; i++) {
lib/Target/Hexagon/HexagonNewValueJump.cpp
  175   for (unsigned i = 0; i < II->getNumOperands(); ++i) {
  562       if (foundJump && MI.getNumOperands() == 0)
lib/Target/Hexagon/HexagonOptAddrMode.cpp
  132     MachineOperand StOp = MI.getOperand(MI.getNumOperands() - 1);
  490   unsigned OpEnd = OldMI->getNumOperands();
  547   unsigned OpEnd = OldMI->getNumOperands();
  633     unsigned OpEnd = UseMI->getNumOperands();
  753       unsigned NumOperands = UseMI->getNumOperands();
lib/Target/Hexagon/HexagonPeephole.cpp
  136         assert(MI.getNumOperands() == 2);
  154         assert(MI.getNumOperands() == 3);
  171         assert(MI.getNumOperands() == 3);
  185         assert(MI.getNumOperands() == 2);
  203         assert(MI.getNumOperands() == 2);
lib/Target/Hexagon/HexagonRDFOpt.cpp
  192     for (unsigned i = 0, n = MI->getNumOperands(); i != n; ++i)
lib/Target/Hexagon/HexagonSplitDouble.cpp
  256       for (unsigned i = 0, n = UseI->getNumOperands(); i < n; ++i) {
lib/Target/Hexagon/HexagonSubtarget.cpp
  238         for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
  350     for (unsigned OpNum = 0; OpNum < DDst->getNumOperands(); OpNum++) {
  425     for (unsigned OpNum = 0; OpNum < SrcI->getNumOperands(); OpNum++) {
  433     for (unsigned OpNum = 0; OpNum < DstI->getNumOperands(); OpNum++) {
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
  604   return MI.getOperand(MI.getNumOperands()-1);
  776     for (unsigned opNum = 0; opNum < MI.getNumOperands()-1; opNum++) {
lib/Target/Hexagon/HexagonVectorPrint.cpp
  108   if (MI.getNumOperands() < 1) return false;
  116   if (MI.mayStore() && MI.getNumOperands() >= 3 && MI.getOperand(2).isReg()) {
  122   if (MI.mayStore() && MI.getNumOperands() >= 4 && MI.getOperand(3).isReg()) {
  141           if (MII->getNumOperands() < 1)
lib/Target/Hexagon/RDFGraph.cpp
 1282   unsigned NumOps = In.getNumOperands();
lib/Target/Lanai/LanaiAsmPrinter.cpp
  131       if (RegOp >= MI->getNumOperands())
lib/Target/Lanai/LanaiDelaySlotFiller.cpp
  203   for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
  231                                               : MI->getNumOperands();
lib/Target/Lanai/LanaiInstrInfo.cpp
  357       for (unsigned IO = 0, EO = Instr.getNumOperands(); !isSafe && IO != EO;
  471   for (unsigned i = 1, e = MI->getNumOperands(); i != e; ++i) {
  534   NewMI->tieOperands(0, NewMI->getNumOperands() - 1);
  762   if (LdSt.getNumOperands() != 4)
lib/Target/Lanai/LanaiMCInstLower.cpp
   96   for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
lib/Target/Lanai/LanaiMemAluCombiner.cpp
  289   if (AluIter->getNumOperands() != 3)
lib/Target/MSP430/MSP430MCInstLower.cpp
  118   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/Mips/Mips16InstrInfo.cpp
  358   for (unsigned i = 0, e = II->getNumOperands(); i != e; ++i) {
  374   for (unsigned i = 0, e = II->getNumOperands(); i != e; ++i) {
lib/Target/Mips/Mips16RegisterInfo.cpp
  109       if ((MI.getNumOperands()> OpNo+2) && MI.getOperand(OpNo+2).isReg())
lib/Target/Mips/MipsAsmPrinter.cpp
  166   for (unsigned int I = MI.getDesc().getNumOperands(), E = MI.getNumOperands();
  596         if (RegOp >= MI->getNumOperands())
  623   assert(OpNum + 1 < MI->getNumOperands() && "Insufficient operands");
  733     opNum = MI->getNumOperands() - 2;
  761   for (int i = opNum, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/Mips/MipsConstantIslandPass.cpp
  739       for (unsigned op = 0, e = MI.getNumOperands(); op != e; ++op)
 1075       for (unsigned j = 0, e = UserMI->getNumOperands(); j != e; ++j)
 1131       for (unsigned j = 0, e = UserMI->getNumOperands(); j != e; ++j)
 1401   for (unsigned i = 0, e = UserMI->getNumOperands(); i != e; ++i)
 1650           J = I->getNumOperands();
lib/Target/Mips/MipsDelaySlotFiller.cpp
  327   for (unsigned I = 0, E = Filler->getNumOperands(); I != E; ++I) {
  361     update(MI, MI.getDesc().getNumOperands(), MI.getNumOperands());
  917   HasHazard |= RegDU.update(Candidate, 0, Candidate.getNumOperands());
lib/Target/Mips/MipsInstrInfo.cpp
  465   if (Subtarget.hasMips32r6() && (I->getNumOperands() > 1) &&
  658     for (unsigned J = I->getDesc().getNumOperands(), E = I->getNumOperands();
lib/Target/Mips/MipsMCInstLower.cpp
  242   if (MI->getNumOperands() == 2) {
  247   } else if (MI->getNumOperands() == 3) {
  283   if (MI->getNumOperands() == 3) {
  289   } else if (MI->getNumOperands() == 4) {
  323   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/Mips/MipsOptimizePICCall.cpp
  125   if (MI.getNumOperands() == 0)
  170   for (unsigned I = 0; I < MI.getNumOperands(); ++I) {
  287   if (!DefMI->mayLoad() || DefMI->getNumOperands() < 3)
lib/Target/Mips/MipsRegisterBankInfo.cpp
  236     for (unsigned i = 1; i < MI->getNumOperands(); i += 2)
  416   unsigned NumOperands = MI.getNumOperands();
lib/Target/Mips/MipsSEFrameLowering.cpp
  305   if (I->getNumOperands() == 4 && I->getOperand(3).isReg()
  370   if (I->getNumOperands() == 4 && I->getOperand(3).isReg()
lib/Target/Mips/MipsSEISelLowering.cpp
 3584   for (unsigned i = 1; i < MI.getNumOperands(); i++)
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  223   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/NVPTX/NVPTXPrologEpilogPass.cpp
   60       for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/Target/PowerPC/PPCAsmPrinter.cpp
  262           OpNo+1 == MI->getNumOperands() ||
lib/Target/PowerPC/PPCBranchCoalescing.cpp
  262     if (I.getNumOperands() != I.getNumExplicitOperands()) {
  402     for (unsigned i = 2, e = PHIInst.getNumOperands() + 1; i != e; i += 2) {
lib/Target/PowerPC/PPCCTRLoops.cpp
  114   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/Target/PowerPC/PPCEarlyReturn.cpp
  122               for (unsigned i = 0; i < J->getNumOperands(); ++i)
lib/Target/PowerPC/PPCFrameLowering.cpp
  365     for (unsigned I = 0, E = Ret.getNumOperands(); I != E; ++I) {
  572       for (unsigned I = 0, E = MBBI->getNumOperands(); I != E; ++I) {
lib/Target/PowerPC/PPCInstrInfo.cpp
  160   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1347   for (UseIdx = 0; UseIdx < UseMI.getNumOperands(); ++UseIdx)
 1352   assert(UseIdx < UseMI.getNumOperands() && "Cannot find Reg in UseMI");
 1567   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 2304   for (int i = MI.getNumOperands() - 1; i > OperandToKeep; i--)
 2351     for (int i = 1, e = MI.getNumOperands(); i < e; i++) {
 2382     bool IsVFReg = (MI.getNumOperands() && MI.getOperand(0).isReg())
 2392     for (int i = 1, e = MI.getNumOperands(); i < e; i++) {
 2483     for (int i = 0, e = EndMI.getNumOperands(); i != e; ++i)
 2502     for (int i = 0, e = It->getNumOperands(); i != e; ++i)
 2763   assert(ForwardingOperand < MI.getNumOperands() &&
 3419   if (MaxOp - MinOp == 1 && MI.getNumOperands() == MinOp) {
 3426     unsigned TotalOps = MI.getNumOperands() + 2; // We've already removed 2 ops.
 3427     for (unsigned i = MI.getNumOperands() - 1; i >= MinOp; i--) {
 3434     for (unsigned i = MI.getNumOperands(); i < TotalOps; i++) {
 3493   assert(DefMI.getNumOperands() >= 3 &&
 3673     for (unsigned i = MI.getNumOperands() - 1; i >= III.ZeroIsSpecialOrig; i--) {
 4099       E = MI.getNumOperands();
lib/Target/PowerPC/PPCMCInstLower.cpp
  154   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/PowerPC/PPCMIPeephole.cpp
  538               for (int i = 0, e = Use.getNumOperands(); i < e; ++i)
  738           for (unsigned i = 1; i < DefPhiMI->getNumOperands(); i += 2) {
  768         for (unsigned i = 1; i < DefPhiMI->getNumOperands(); i += 2) {
  904   for (unsigned I = 2, E = Phi->getNumOperands() + 1; I != E; I += 2) {
 1403   assert(MI.getNumOperands() == 4 && "RLDICR should have 4 operands");
 1429   assert(SrcMI->getNumOperands() == 2 && "EXTSW should have 2 operands");
lib/Target/PowerPC/PPCReduceCRLogicals.cpp
   62     for (unsigned i = 2, e = MI.getNumOperands() + 1; i != e; i += 2) {
   95     for (unsigned i = 2, e = MI.getNumOperands() + 1; i != e; i += 2) {
  253   return MI.getNumOperands() == 3;
  257   return MI.getNumOperands() == 1;
lib/Target/PowerPC/PPCRegisterInfo.cpp
 1246     assert(FIOperandNum < MI.getNumOperands() &&
 1271     assert(FIOperandNum < MI->getNumOperands() &&
lib/Target/Sparc/DelaySlotFiller.cpp
  251   for (unsigned i = 0, e = candidate->getNumOperands(); i!= e; ++i) {
  301     assert(MI->getNumOperands() >= 2);
  322   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/Sparc/LeonPasses.cpp
   86       if (Opcode == SP::CALL && MI.getNumOperands() > 0) {
lib/Target/Sparc/SparcMCInstLower.cpp
  100   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
lib/Target/SystemZ/SystemZElimCompare.cpp
  139   if (MI.getNumOperands() > 0 && MI.getOperand(0).isReg() &&
  152   for (unsigned I = 0, E = MI.getNumOperands(); I != E; ++I) {
  232   while (Branch->getNumOperands())
  275   while (Branch->getNumOperands())
lib/Target/SystemZ/SystemZInstrInfo.cpp
  205   for (unsigned I = 2; I < MI.getNumOperands(); ++I)
  983         unsigned NumOps = MI.getNumOperands();
lib/Target/SystemZ/SystemZMCInstLower.cpp
   96   for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
 1330           while (MI.getNumOperands() > 0)
 1331             MI.RemoveOperand(MI.getNumOperands() - 1);
lib/Target/WebAssembly/WebAssemblyCallIndirectFixup.cpp
  136         while (MI.getNumOperands() > MI.getDesc().getNumDefs())
  137           MI.RemoveOperand(MI.getNumOperands() - 1);
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  211   for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
lib/Target/WebAssembly/WebAssemblyUtilities.cpp
   30   if (MI.getNumOperands() == 0)
lib/Target/X86/X86CondBrFolding.cpp
  191     for (unsigned i = 2, e = MI->getNumOperands() + 1; i != e; i += 2) {
lib/Target/X86/X86DomainReassignment.cpp
  189     for (unsigned Idx = 1, End = MI->getNumOperands(); Idx < End; ++Idx)
  565     int OpEnd = DefMI->getNumOperands();
lib/Target/X86/X86ExpandPseudo.cpp
  167   EmitBranchFunnel(0, (JTInst->getNumOperands() - 2) / 2);
  329     for (unsigned I = 1, E = MBBI->getNumOperands(); I != E; ++I)
lib/Target/X86/X86FastISel.cpp
  230                                          MIB->getNumOperands() +
lib/Target/X86/X86FixupBWInsts.cpp
  290   unsigned NumArgs = MI->getNumOperands();
  353   unsigned NumArgs = MI->getNumOperands();
lib/Target/X86/X86FixupLEAs.cpp
  243   for (unsigned i = 0; i < MI.getNumOperands(); ++i) {
lib/Target/X86/X86FlagsCopyLowering.cpp
  309       for (int OpIdx = 1, NumOps = MI.getNumOperands(); OpIdx < NumOps;
lib/Target/X86/X86FloatingPoint.cpp
  448     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1017   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1525     for (unsigned i = InlineAsm::MIOp_FirstOperand, e = MI.getNumOperands();
 1592     for (unsigned I = 0, E = MI.getNumOperands(); I < E; ++I)
 1602     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 1631     for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
lib/Target/X86/X86FrameLowering.cpp
  175     for (unsigned i = 0, e = MBBI->getNumOperands(); i != e; ++i) {
lib/Target/X86/X86ISelLowering.cpp
29265   assert(MI.getNumOperands() == 10 && "VAARG_64 should have 10 operands!");
29560   assert((MI.getNumOperands() <= 3 ||
29561           !MI.getOperand(MI.getNumOperands() - 1).isReg() ||
29562           MI.getOperand(MI.getNumOperands() - 1).getReg() == X86::EFLAGS) &&
29566   for (int i = 3, e = MI.getNumOperands() - 1; i != e; ++i) {
lib/Target/X86/X86InstrInfo.cpp
  673   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
  911   if (MI.getNumOperands() > 2)
  923     assert(MI.getNumOperands() >= 3 && "Unknown shift instruction!");
  943     assert(MI.getNumOperands() >= 3 && "Unknown shift instruction!");
  975     assert(MI.getNumOperands() >= 3 && "Unknown shift instruction!");
  983     assert(MI.getNumOperands() >= 2 && "Unknown inc instruction!");
 1005     assert(MI.getNumOperands() >= 2 && "Unknown dec instruction!");
 1037     assert(MI.getNumOperands() >= 3 && "Unknown add instruction!");
 1081     assert(MI.getNumOperands() >= 3 && "Unknown add instruction!");
 1090     assert(MI.getNumOperands() >= 3 && "Unknown add instruction!");
 1131     assert(MI.getNumOperands() >= 3 && "Unknown add instruction!");
 1159     assert(MI.getNumOperands() >= 3 && "Unknown sub instruction!");
 1429   uint8_t Imm = MI.getOperand(MI.getNumOperands()-1).getImm();
 1438   MI.getOperand(MI.getNumOperands()-1).setImm(NewImm);
 1630     unsigned Imm = MI.getOperand(MI.getNumOperands() - 1).getImm();
 1643       WorkingMI.getOperand(MI.getNumOperands() - 1).setImm(AltImm);
 1731     unsigned Imm = MI.getOperand(MI.getNumOperands() - 1).getImm() & 0x7;
 1734     WorkingMI.getOperand(MI.getNumOperands() - 1).setImm(Imm);
 1764     unsigned Imm = MI.getOperand(MI.getNumOperands() - 1).getImm() & 0x1f;
 1767     WorkingMI.getOperand(MI.getNumOperands() - 1).setImm(Imm);
 2732       ConditionDef->getNumOperands() == 3 &&
 3846   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 4638   for (int Idx : llvm::seq<int>(0, NewMI.getNumOperands())) {
 4676   for (unsigned i = NumOps + 2, e = MI.getNumOperands(); i != e; ++i) {
 4699   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 4738       unsigned Imm = MI.getOperand(MI.getNumOperands() - 1).getImm();
 4755         NewMI->getOperand(NewMI->getNumOperands() - 1).setImm(NewImm);
 5484   for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
 7236   assert((Inst.getNumOperands() == 3 || Inst.getNumOperands() == 4) &&
 7236   assert((Inst.getNumOperands() == 3 || Inst.getNumOperands() == 4) &&
 7245   if (Inst.getNumOperands() == 4) {
 7664   if (OldMI1.getNumOperands() != 4 || OldMI2.getNumOperands() != 4)
 7664   if (OldMI1.getNumOperands() != 4 || OldMI2.getNumOperands() != 4)
 7667   assert(NewMI1.getNumOperands() == 4 && NewMI2.getNumOperands() == 4 &&
 7667   assert(NewMI1.getNumOperands() == 4 && NewMI2.getNumOperands() == 4 &&
lib/Target/X86/X86InstrInfo.h
  115   return Op + X86::AddrSegmentReg <= MI.getNumOperands() &&
  128   return Op + X86::AddrNumOperands <= MI.getNumOperands() &&
lib/Target/X86/X86InstructionSelector.cpp
  328   assert(I.getNumOperands() == I.getNumExplicitOperands() &&
 1334   unsigned NumDefs = I.getNumOperands() - 1;
 1375   for (unsigned Idx = 2; Idx < I.getNumOperands(); ++Idx) {
lib/Target/X86/X86MCInstLower.cpp
 1350   for (unsigned I = 0; I < MI.getNumOperands(); ++I)
 1367   for (unsigned I = 0; I < MI.getNumOperands(); ++I)
 1445   for (unsigned I = 0; I < MI.getNumOperands(); ++I)
 1468   for (unsigned I = 0; I < MI.getNumOperands(); ++I)
 2142     assert(MI->getNumOperands() >= 6 &&
 2214     assert(MI->getNumOperands() >= 6 &&
 2234     assert(MI->getNumOperands() >= 8 &&
 2237     const MachineOperand &CtrlOp = MI->getOperand(MI->getNumOperands() - 1);
 2262     assert(MI->getNumOperands() >= 7 &&
 2279     if (MI->getNumOperands() <= 4)
 2341     if (MI->getNumOperands() <= 4)
 2434     if (MI->getNumOperands() <= 4)
lib/Target/X86/X86OptimizeLEAs.cpp
  456     for (unsigned i = 0; i < MI.getNumOperands(); i++)
lib/Target/X86/X86RegisterBankInfo.cpp
  114   unsigned NumOperands = MI.getNumOperands();
  129   unsigned NumOperands = MI.getNumOperands();
  149   unsigned NumOperands = MI.getNumOperands();
  187     unsigned NumOperands = MI.getNumOperands();
  198   unsigned NumOperands = MI.getNumOperands();
  293     unsigned NumOperands = MI.getNumOperands();
lib/Target/X86/X86SpeculativeLoadHardening.cpp
  289     for (int OpIdx = 1, NumOps = MI.getNumOperands(); OpIdx < NumOps;
  338       for (int OpIdx = 1, NumOps = MI.getNumOperands(); OpIdx < NumOps;
lib/Target/XCore/XCoreFrameLowering.cpp
  403       for (unsigned i = 3, e = MBBI->getNumOperands(); i < e; ++i)
lib/Target/XCore/XCoreMCInstLower.cpp
  106   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {