Lines Matching refs:UseMI
50 MachineInstr *UseMI; member
56 UseMI(MI), UseOpNo(OpNo) { in FoldCandidate()
101 MachineInstr *MI = Fold.UseMI; in updateOperand()
125 if (Candidate.UseMI == MI) in isUseMIInFoldList()
191 static void foldOperand(MachineOperand &OpToFold, MachineInstr *UseMI, in foldOperand() argument
197 const MachineOperand &UseOp = UseMI->getOperand(UseOpIdx); in foldOperand()
236 if (UseMI->getOpcode() == AMDGPU::COPY) { in foldOperand()
237 unsigned DestReg = UseMI->getOperand(0).getReg(); in foldOperand()
247 UseMI->setDesc(TII->get(MovOp)); in foldOperand()
248 CopiesToReplace.push_back(UseMI); in foldOperand()
255 if (UseMI->getOpcode() == AMDGPU::REG_SEQUENCE) { in foldOperand()
256 unsigned RegSeqDstReg = UseMI->getOperand(0).getReg(); in foldOperand()
257 unsigned RegSeqDstSubReg = UseMI->getOperand(UseOpIdx + 1).getImm(); in foldOperand()
273 const MCInstrDesc &UseDesc = UseMI->getDesc(); in foldOperand()
283 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &ImmOp, TII); in foldOperand()
287 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &OpToFold, TII); in foldOperand()
358 MachineInstr *UseMI = Use->getParent(); in runOnMachineFunction() local
360 foldOperand(OpToFold, UseMI, Use.getOperandNo(), FoldList, in runOnMachineFunction()
379 Fold.UseOpNo << " of " << *Fold.UseMI << '\n'); in runOnMachineFunction()