Lines Matching refs:TII
142 const SIInstrInfo *TII) { in tryAddToFoldList() argument
143 if (!TII->isOperandLegal(MI, OpNo, OpToFold)) { in tryAddToFoldList()
151 MI->setDesc(TII->get(AMDGPU::V_MAD_F32)); in tryAddToFoldList()
152 bool FoldAsMAD = tryAddToFoldList(FoldList, MI, OpNo, OpToFold, TII); in tryAddToFoldList()
157 MI->setDesc(TII->get(Opc)); in tryAddToFoldList()
170 bool CanCommute = TII->findCommutedOpIndices(MI, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
188 !TII->commuteInstruction(MI, false, CommuteIdx0, CommuteIdx1)) in tryAddToFoldList()
191 if (!TII->isOperandLegal(MI, OpNo, OpToFold)) in tryAddToFoldList()
203 const SIInstrInfo *TII, const SIRegisterInfo &TRI, in foldOperand() argument
225 const MCInstrDesc &FoldDesc = TII->get(OpToFold.getParent()->getOpcode()); in foldOperand()
251 unsigned MovOp = TII->getMovOpcode(DestRC); in foldOperand()
255 UseMI->setDesc(TII->get(MovOp)); in foldOperand()
276 CopiesToReplace, TII, TRI, MRI); in foldOperand()
291 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &ImmOp, TII); in foldOperand()
295 tryAddToFoldList(FoldList, UseMI, UseOpIdx, &OpToFold, TII); in foldOperand()
305 const SIInstrInfo *TII = in runOnMachineFunction() local
307 const SIRegisterInfo &TRI = TII->getRegisterInfo(); in runOnMachineFunction()
321 unsigned OpSize = TII->getOpSize(MI, 1); in runOnMachineFunction()
333 if (FoldingImm && !TII->isInlineConstant(OpToFold, OpSize) && in runOnMachineFunction()
357 CopiesToReplace, TII, TRI, MRI); in runOnMachineFunction()