Lines Matching refs:NewMI
169 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
218 if (NewMI) { in commuteInstructionImpl()
249 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
261 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
526 MachineInstr *NewMI = in foldPatchpoint() local
528 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
561 NewMI->tieOperands(TiedTo, NewMI->getNumOperands() - 1); in foldPatchpoint()
565 return NewMI; in foldPatchpoint()
607 MachineInstr &NewMI = TII.duplicate(*MI.getParent(), MI.getIterator(), MI); in foldInlineAsmMemOperand() local
609 foldInlineAsmMemOperand(&NewMI, Op, FI, TII); in foldInlineAsmMemOperand()
614 MachineOperand &ExtraMO = NewMI.getOperand(InlineAsm::MIOp_ExtraInfo); in foldInlineAsmMemOperand()
624 MachineFunction *MF = NewMI.getMF(); in foldInlineAsmMemOperand()
629 NewMI.addMemOperand(*MF, MMO); in foldInlineAsmMemOperand()
631 return &NewMI; in foldInlineAsmMemOperand()
672 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
678 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
679 if (NewMI) in foldMemoryOperand()
680 MBB->insert(MI, NewMI); in foldMemoryOperand()
685 NewMI = foldMemoryOperandImpl(MF, MI, Ops, MI, FI, LIS, VRM); in foldMemoryOperand()
688 if (NewMI) { in foldMemoryOperand()
689 NewMI->setMemRefs(MF, MI.memoperands()); in foldMemoryOperand()
692 NewMI->mayStore()) && in foldMemoryOperand()
695 NewMI->mayLoad()) && in foldMemoryOperand()
701 NewMI->addMemOperand(MF, MMO); in foldMemoryOperand()
705 NewMI->cloneInstrSymbols(MF, MI); in foldMemoryOperand()
707 return NewMI; in foldMemoryOperand()
743 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
751 NewMI = foldPatchpoint(MF, MI, Ops, FrameIndex, *this); in foldMemoryOperand()
752 if (NewMI) in foldMemoryOperand()
753 NewMI = &*MBB.insert(MI, NewMI); in foldMemoryOperand()
758 NewMI = foldMemoryOperandImpl(MF, MI, Ops, MI, LoadMI, LIS); in foldMemoryOperand()
761 if (!NewMI) in foldMemoryOperand()
766 NewMI->setMemRefs(MF, LoadMI.memoperands()); in foldMemoryOperand()
769 NewMI->setMemRefs(MF, MI.memoperands()); in foldMemoryOperand()
773 NewMI->addMemOperand(MF, *I); in foldMemoryOperand()
776 return NewMI; in foldMemoryOperand()