Lines Matching refs:Cst
1312 Optional<APFloat> &Cst) { in matchCombineConstantFoldFpUnary() argument
1316 Cst = constantFoldFpUnary(MI.getOpcode(), DstTy, SrcReg, MRI); in matchCombineConstantFoldFpUnary()
1317 return Cst.has_value(); in matchCombineConstantFoldFpUnary()
1321 Optional<APFloat> &Cst) { in applyCombineConstantFoldFpUnary() argument
1322 assert(Cst && "Optional is unexpectedly empty!"); in applyCombineConstantFoldFpUnary()
1325 auto *FPVal = ConstantFP::get(MF.getFunction().getContext(), *Cst); in applyCombineConstantFoldFpUnary()
2088 APInt Cst; in matchCombineConstPtrAddToI2P() local
2089 if (mi_match(LHS, MRI, m_GIntToPtr(m_ICst(Cst)))) { in matchCombineConstPtrAddToI2P()
2092 NewCst = Cst.zextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
2337 auto Cst = in matchConstantSelectCmp() local
2339 if (!Cst) in matchConstantSelectCmp()
2341 OpIdx = Cst->isZero() ? 3 : 2; in matchConstantSelectCmp()
2903 int64_t Cst, bool IsVector, bool IsFP) { in isConstValidTrue() argument
2905 return (ScalarSizeBits == 1 && Cst == -1) || in isConstValidTrue()
2906 isConstTrueVal(TLI, Cst, IsVector, IsFP); in isConstValidTrue()
2968 int64_t Cst; in matchNotCmp() local
2977 if (!mi_match(CstReg, MRI, m_ICst(Cst))) in matchNotCmp()
2979 if (!isConstValidTrue(TLI, Ty.getSizeInBits(), Cst, false, IsFP)) in matchNotCmp()
3924 auto Cst = getIConstantVRegValWithLookThrough(MI.getOperand(2).getReg(), MRI); in matchExtractVecEltBuildVec() local
3925 if (!Cst || Cst->Value.getZExtValue() >= SrcTy.getNumElements()) in matchExtractVecEltBuildVec()
3928 unsigned VecIdx = Cst->Value.getZExtValue(); in matchExtractVecEltBuildVec()
3996 auto Cst = getIConstantVRegVal(II.getOperand(2).getReg(), MRI); in matchExtractAllEltsFromBuildVector() local
3997 if (!Cst) in matchExtractAllEltsFromBuildVector()
3999 unsigned Idx = Cst->getZExtValue(); in matchExtractAllEltsFromBuildVector()
4691 auto Cst = getIConstantVRegValWithLookThrough(AndRHS, MRI); in matchNarrowBinopFeedingAnd() local
4692 if (!Cst) in matchNarrowBinopFeedingAnd()
4694 auto Mask = Cst->Value; in matchNarrowBinopFeedingAnd()