Lines Matching refs:K0

68                 Register &Val, CstTy &K0, CstTy &K1);
83 bool isClampZeroToOne(MachineInstr *K0, MachineInstr *K1);
132 CstTy &K0, CstTy &K1) { in matchMed() argument
143 MMMOpc.Min, m_CommutativeBinOp(MMMOpc.Max, m_Reg(Val), m_Cst(K0)), in matchMed()
147 m_Cst(K0)))); in matchMed()
164 Optional<ValueAndVReg> K0, K1; in matchIntMinMaxToMed3() local
166 if (!matchMed<GCstAndRegMatch>(MI, MRI, OpcodeTriple, Val, K0, K1)) in matchIntMinMaxToMed3()
169 if (OpcodeTriple.Med == AMDGPU::G_AMDGPU_SMED3 && K0->Value.sgt(K1->Value)) in matchIntMinMaxToMed3()
171 if (OpcodeTriple.Med == AMDGPU::G_AMDGPU_UMED3 && K0->Value.ugt(K1->Value)) in matchIntMinMaxToMed3()
174 MatchInfo = {OpcodeTriple.Med, Val, K0->VReg, K1->VReg}; in matchIntMinMaxToMed3()
209 Optional<FPValueAndVReg> K0, K1; in matchFPMinMaxToMed3() local
211 if (!matchMed<GFCstAndRegMatch>(MI, MRI, OpcodeTriple, Val, K0, K1)) in matchFPMinMaxToMed3()
214 if (K0->Value > K1->Value) in matchFPMinMaxToMed3()
226 if ((!MRI.hasOneNonDBGUse(K0->VReg) || TII.isInlineConstant(K0->Value)) && in matchFPMinMaxToMed3()
228 MatchInfo = {OpcodeTriple.Med, Val, K0->VReg, K1->VReg}; in matchFPMinMaxToMed3()
241 Optional<FPValueAndVReg> K0, K1; in matchFPMinMaxToClamp() local
243 if (!matchMed<GFCstOrSplatGFCstMatch>(MI, MRI, OpcodeTriple, Val, K0, K1)) in matchFPMinMaxToClamp()
246 if (!K0->Value.isExactlyValue(0.0) || !K1->Value.isExactlyValue(1.0)) in matchFPMinMaxToClamp()
347 bool AMDGPURegBankCombinerHelper::isClampZeroToOne(MachineInstr *K0, in isClampZeroToOne() argument
349 if (isFCst(K0) && isFCst(K1)) { in isClampZeroToOne()
350 const ConstantFP *KO_FPImm = K0->getOperand(1).getFPImm(); in isClampZeroToOne()