Home | History | Annotate | Download | only in AMDGPU

Lines Matching refs:Src0

119   // We don't need to check src0, all input types are legal, so just make sure
120 // src0 isn't using any modifiers.
147 int Src0Idx = AMDGPU::getNamedOperandIdx(MI.getOpcode(), AMDGPU::OpName::src0);
148 MachineOperand &Src0 = MI.getOperand(Src0Idx);
150 // Only one literal constant is allowed per instruction, so if src0 is a
152 if (Src0.isImm() &&
153 TII->isLiteralConstant(Src0, TII->getOpSize(MI, Src0Idx)))
156 // Literal constants and SGPRs can only be used in Src0, so if Src0 is an
159 if (Src0.isReg() && !isVGPR(&Src0, TRI, MRI))
162 // Try to fold Src0
163 if (Src0.isReg() && MRI.hasOneUse(Src0.getReg())) {
164 unsigned Reg = Src0.getReg();
171 Src0.ChangeToImmediate(MovSrc.getImm());
183 // We have failed to fold src0, so commute the instruction and try again.
302 Inst32.addOperand(*TII->getNamedOperand(MI, AMDGPU::OpName::src0));