Lines Matching defs:MI
148 virtual bool tryToFoldLoadIntoMI(MachineInstr *MI, unsigned OpNo,
225 bool isARMNEONPred(const MachineInstr *MI);
226 bool DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR);
240 bool ARMFastISel::DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR) {
241 if (!MI->hasOptionalDef())
245 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
246 const MachineOperand &MO = MI->getOperand(i);
254 bool ARMFastISel::isARMNEONPred(const MachineInstr *MI) {
255 const MCInstrDesc &MCID = MI->getDesc();
260 return MI->isPredicable();
276 MachineInstr *MI = &*MIB;
281 if (isARMNEONPred(MI))
287 if (DefinesOptionalPredicate(MI, &CPSR)) {
1310 return ARMCC::MI;
2979 bool ARMFastISel::tryToFoldLoadIntoMI(MachineInstr *MI, unsigned OpNo,
2990 if (MI->getNumOperands() < 3 || !MI->getOperand(2).isImm())
2992 const uint64_t Imm = MI->getOperand(2).getImm();
2998 if (FoldableLoadExtends[i].Opc[isThumb2] == MI->getOpcode() &&
3011 unsigned ResultReg = MI->getOperand(0).getReg();
3014 MI->eraseFromParent();