Lines Matching refs:K1
83 Register &Val, CstTy &K0, CstTy &K1) const;
98 bool isClampZeroToOne(MachineInstr *K0, MachineInstr *K1) const;
174 CstTy &K0, CstTy &K1) const { in matchMed()
186 m_Cst(K1)), in matchMed()
188 MMMOpc.Max, m_CommutativeBinOp(MMMOpc.Min, m_Reg(Val), m_Cst(K1)), in matchMed()
205 std::optional<ValueAndVReg> K0, K1; in matchIntMinMaxToMed3() local
207 if (!matchMed<GCstAndRegMatch>(MI, MRI, OpcodeTriple, Val, K0, K1)) in matchIntMinMaxToMed3()
210 if (OpcodeTriple.Med == AMDGPU::G_AMDGPU_SMED3 && K0->Value.sgt(K1->Value)) in matchIntMinMaxToMed3()
212 if (OpcodeTriple.Med == AMDGPU::G_AMDGPU_UMED3 && K0->Value.ugt(K1->Value)) in matchIntMinMaxToMed3()
215 MatchInfo = {OpcodeTriple.Med, Val, K0->VReg, K1->VReg}; in matchIntMinMaxToMed3()
249 std::optional<FPValueAndVReg> K0, K1; in matchFPMinMaxToMed3() local
251 if (!matchMed<GFCstAndRegMatch>(MI, MRI, OpcodeTriple, Val, K0, K1)) in matchFPMinMaxToMed3()
254 if (K0->Value > K1->Value) in matchFPMinMaxToMed3()
267 (!MRI.hasOneNonDBGUse(K1->VReg) || TII.isInlineConstant(K1->Value))) { in matchFPMinMaxToMed3()
268 MatchInfo = {OpcodeTriple.Med, Val, K0->VReg, K1->VReg}; in matchFPMinMaxToMed3()
281 std::optional<FPValueAndVReg> K0, K1; in matchFPMinMaxToClamp() local
283 if (!matchMed<GFCstOrSplatGFCstMatch>(MI, MRI, OpcodeTriple, Val, K0, K1)) in matchFPMinMaxToClamp()
286 if (!K0->Value.isExactlyValue(0.0) || !K1->Value.isExactlyValue(1.0)) in matchFPMinMaxToClamp()
386 MachineInstr *K1) const { in isClampZeroToOne()
387 if (isFCst(K0) && isFCst(K1)) { in isClampZeroToOne()
389 const ConstantFP *K1_FPImm = K1->getOperand(1).getFPImm(); in isClampZeroToOne()