Lines Matching refs:UseMI
55 MachineInstr *UseMI; member
61 UseMI(MI), UseOpNo(OpNo) { in FoldCandidate()
109 MachineInstr *MI = Fold.UseMI; in updateOperand()
133 if (Candidate.UseMI == MI) in isUseMIInFoldList()
199 static void foldOperand(MachineOperand &OpToFold, MachineInstr *UseMI, in foldOperand() argument
205 const MachineOperand &UseOp = UseMI->getOperand(UseOpIdx); in foldOperand()
244 if (UseMI->getOpcode() == AMDGPU::COPY) { in foldOperand()
245 unsigned DestReg = UseMI->getOperand(0).getReg(); in foldOperand()
255 UseMI->setDesc(TII->get(MovOp)); in foldOperand()
256 CopiesToReplace.push_back(UseMI); in foldOperand()
263 if (UseMI->getOpcode() == AMDGPU::REG_SEQUENCE) { in foldOperand()
264 unsigned RegSeqDstReg = UseMI->getOperand(0).getReg(); in foldOperand()
265 unsigned RegSeqDstSubReg = UseMI->getOperand(UseOpIdx + 1).getImm(); in foldOperand()
281 const MCInstrDesc &UseDesc = UseMI->getDesc(); in foldOperand()
291 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &ImmOp, TII); in foldOperand()
295 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &OpToFold, TII); in foldOperand()
354 MachineInstr *UseMI = Use->getParent(); in runOnMachineFunction() local
356 foldOperand(OpToFold, UseMI, Use.getOperandNo(), FoldList, in runOnMachineFunction()
375 Fold.UseOpNo << " of " << *Fold.UseMI << '\n'); in runOnMachineFunction()