Lines Matching refs:NewMI
127 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
170 if (NewMI) { in commuteInstructionImpl()
195 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
207 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
460 MachineInstr *NewMI = in foldPatchpoint() local
462 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
488 return NewMI; in foldPatchpoint()
511 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
516 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
517 if (NewMI) in foldMemoryOperand()
518 MBB->insert(MI, NewMI); in foldMemoryOperand()
521 NewMI = foldMemoryOperandImpl(MF, MI, Ops, MI, FI, LIS); in foldMemoryOperand()
524 if (NewMI) { in foldMemoryOperand()
525 NewMI->setMemRefs(MI.memoperands_begin(), MI.memoperands_end()); in foldMemoryOperand()
528 NewMI->mayStore()) && in foldMemoryOperand()
531 NewMI->mayLoad()) && in foldMemoryOperand()
538 NewMI->addMemOperand(MF, MMO); in foldMemoryOperand()
540 return NewMI; in foldMemoryOperand()
791 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
798 NewMI = foldPatchpoint(MF, MI, Ops, FrameIndex, *this); in foldMemoryOperand()
799 if (NewMI) in foldMemoryOperand()
800 NewMI = &*MBB.insert(MI, NewMI); in foldMemoryOperand()
803 NewMI = foldMemoryOperandImpl(MF, MI, Ops, MI, LoadMI, LIS); in foldMemoryOperand()
806 if (!NewMI) return nullptr; in foldMemoryOperand()
810 NewMI->setMemRefs(LoadMI.memoperands_begin(), LoadMI.memoperands_end()); in foldMemoryOperand()
814 NewMI->setMemRefs(MI.memoperands_begin(), MI.memoperands_end()); in foldMemoryOperand()
818 NewMI->addMemOperand(MF, *I); in foldMemoryOperand()
821 return NewMI; in foldMemoryOperand()