Lines Matching refs:UseMI
903 bool SIInstrInfo::FoldImmediate(MachineInstr *UseMI, MachineInstr *DefMI, in FoldImmediate() argument
908 unsigned Opc = UseMI->getOpcode(); in FoldImmediate()
912 if (hasModifiersSet(*UseMI, AMDGPU::OpName::src0_modifiers) || in FoldImmediate()
913 hasModifiersSet(*UseMI, AMDGPU::OpName::src1_modifiers) || in FoldImmediate()
914 hasModifiersSet(*UseMI, AMDGPU::OpName::src2_modifiers)) { in FoldImmediate()
918 MachineOperand *Src0 = getNamedOperand(*UseMI, AMDGPU::OpName::src0); in FoldImmediate()
919 MachineOperand *Src1 = getNamedOperand(*UseMI, AMDGPU::OpName::src1); in FoldImmediate()
920 MachineOperand *Src2 = getNamedOperand(*UseMI, AMDGPU::OpName::src2); in FoldImmediate()
948 UseMI->RemoveOperand(AMDGPU::getNamedOperandIdx(AMDGPU::V_MAD_F32, in FoldImmediate()
950 UseMI->RemoveOperand(AMDGPU::getNamedOperandIdx(AMDGPU::V_MAD_F32, in FoldImmediate()
964 removeModOperands(*UseMI); in FoldImmediate()
965 UseMI->setDesc(get(AMDGPU::V_MADMK_F32)); in FoldImmediate()
992 UseMI->RemoveOperand(AMDGPU::getNamedOperandIdx(AMDGPU::V_MAD_F32, in FoldImmediate()
994 UseMI->RemoveOperand(AMDGPU::getNamedOperandIdx(AMDGPU::V_MAD_F32, in FoldImmediate()
1000 removeModOperands(*UseMI); in FoldImmediate()
1001 UseMI->setDesc(get(AMDGPU::V_MADAK_F32)); in FoldImmediate()
2302 MachineInstr &UseMI = *I->getParent(); in moveToVALU() local
2303 if (!canReadVGPR(UseMI, I.getOperandNo())) { in moveToVALU()
2304 Worklist.push_back(&UseMI); in moveToVALU()