Lines Matching defs:OpIdx
922 int MachineInstr::findInlineAsmFlagIdx(unsigned OpIdx,
925 assert(OpIdx < getNumOperands() && "OpIdx out of range");
928 if (OpIdx < InlineAsm::MIOp_FirstOperand)
940 if (i + NumOps > OpIdx) {
951 MachineInstr::getRegClassConstraint(unsigned OpIdx,
960 return TII->getRegClass(getDesc(), OpIdx, TRI, MF);
962 if (!getOperand(OpIdx).isReg())
967 if (getOperand(OpIdx).isUse() && isRegTiedToDefOperand(OpIdx, &DefIdx))
968 OpIdx = DefIdx;
971 int FlagIdx = findInlineAsmFlagIdx(OpIdx);
1137 unsigned MachineInstr::findTiedOperandIdx(unsigned OpIdx) const {
1138 const MachineOperand &MO = getOperand(OpIdx);
1153 if (UseMO.isReg() && UseMO.isUse() && UseMO.TiedTo == OpIdx + 1)
1171 // OpIdx belongs to this operand group.
1172 if (OpIdx > i && OpIdx < i + NumOps)
1181 // OpIdx is a use tied to TiedGroup.
1183 return OpIdx - Delta;
1185 // OpIdx is a def tied to this use group.
1187 return OpIdx + Delta;
1674 unsigned OpIdx = DeadOps.back();
1675 if (getOperand(OpIdx).isImplicit())
1676 RemoveOperand(OpIdx);
1678 getOperand(OpIdx).setIsKill(false);
1739 unsigned OpIdx = DeadOps.back();
1740 if (getOperand(OpIdx).isImplicit())
1741 RemoveOperand(OpIdx);
1743 getOperand(OpIdx).setIsDead(false);