Lines Matching refs:m_APInt
559 if (match(RHS, m_APInt(C))) { in cmpExcludesZero()
660 if (match(LHS, m_V) && match(RHS, m_APInt(C))) { in computeKnownBitsFromCmp()
664 match(RHS, m_APInt(C))) { in computeKnownBitsFromCmp()
667 if (match(Y, m_APInt(Mask))) in computeKnownBitsFromCmp()
670 } else if (match(LHS, m_c_Or(m_V, m_Value(Y))) && match(RHS, m_APInt(C))) { in computeKnownBitsFromCmp()
673 if (match(Y, m_APInt(Mask))) in computeKnownBitsFromCmp()
676 } else if (match(LHS, m_Xor(m_V, m_APInt(Mask))) && in computeKnownBitsFromCmp()
677 match(RHS, m_APInt(C))) { in computeKnownBitsFromCmp()
682 match(RHS, m_APInt(C)) && ShAmt < BitWidth) { in computeKnownBitsFromCmp()
691 match(RHS, m_APInt(C)) && ShAmt < BitWidth) { in computeKnownBitsFromCmp()
707 if (match(RHS, m_APInt(C))) { in computeKnownBitsFromCmp()
709 if (match(LHS, m_CombineOr(m_V, m_AddLike(m_V, m_APInt(Offset))))) { in computeKnownBitsFromCmp()
1272 if (match(I->getOperand(0), m_APInt(C))) in computeKnownBitsFromOperator()
1286 if (match(I->getOperand(0), m_APInt(C))) in computeKnownBitsFromOperator()
1569 m_Br(m_c_ICmp(Pred, m_Specific(IncValue), m_APInt(RHSC)), in computeKnownBitsFromOperator()
1684 if (!match(I->getOperand(2), m_APInt(SA))) in computeKnownBitsFromOperator()
2058 if (match(V, m_APInt(C))) { in computeKnownBits()
2573 !match(Start, m_APInt(StartC)) || StartC->isZero()) in isNonZeroRecurrence()
2581 (BO->hasNoSignedWrap() && match(Step, m_APInt(StepC)) && in isNonZeroRecurrence()
2585 match(Step, m_APInt(StepC)) && !StepC->isZero(); in isNonZeroRecurrence()
3468 return match(OBO, m_Mul(m_Specific(V1), m_APInt(C))) && in isNonEqualMul()
3483 return match(OBO, m_Shl(m_Specific(V1), m_APInt(C))) && in isNonEqualShl()
3505 if (match(IV1, m_APInt(C1)) && match(IV2, m_APInt(C2)) && *C1 != *C2) in isNonEqualPHIs()
3680 if (!match(RHS, m_APInt(CLow))) in isSignedMinMaxClamp()
3688 if (!match(RHS2, m_APInt(CHigh))) in isSignedMinMaxClamp()
3707 !match(II->getArgOperand(1), m_APInt(CLow)) || in isSignedMinMaxIntrinsicClamp()
3708 !match(InnerII->getArgOperand(1), m_APInt(CHigh))) in isSignedMinMaxIntrinsicClamp()
3807 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBitsImpl()
3830 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBitsImpl()
3858 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBitsImpl()
3870 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBitsImpl()
4784 m_APInt(RHS)))) { in computeKnownFPClassFromCond()
6853 if (match(Inst->getOperand(1), m_APInt(V))) in isSafeToSpeculativelyExecuteWithOpcode()
6861 if (!match(Inst->getOperand(1), m_APInt(Denominator))) in isSafeToSpeculativelyExecuteWithOpcode()
6871 if (match(Inst->getOperand(0), m_APInt(Numerator))) in isSafeToSpeculativelyExecuteWithOpcode()
8142 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp()
8145 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
8150 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
8155 if (match(FalseVal, m_UMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
8160 if (match(FalseVal, m_UMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
8271 if (match(V, m_APInt(C))) in getNotValue()
8324 if (!match(CmpRHS, m_APInt(C1))) in matchMinMax()
8329 if ((CmpLHS == TrueVal && match(FalseVal, m_APInt(C2))) || in matchMinMax()
8330 (CmpLHS == FalseVal && match(TrueVal, m_APInt(C2)))) { in matchMinMax()
8391 if (!match(B, m_APInt(RHSC1)) || !match(C, m_APInt(RHSC2))) in isKnownInversion()
8927 if (match(RHS, m_NSWAdd(m_Specific(LHS), m_APInt(C))) || in isTruePredicate()
8928 match(RHS, m_Or(m_Specific(LHS), m_APInt(C)))) in isTruePredicate()
8942 if (match(LHS, m_NSWAddLike(m_Value(X), m_APInt(CLHS))) && in isTruePredicate()
8943 match(RHS, m_NSWAddLike(m_Specific(X), m_APInt(CRHS)))) in isTruePredicate()
8969 if (match(LHS, m_UDiv(m_Specific(RHS), m_APInt(C))) && C->ugt(1)) in isTruePredicate()
8983 if (match(LHS, m_NUWAddLike(m_Value(X), m_APInt(CLHS))) && in isTruePredicate()
8984 match(RHS, m_NUWAddLike(m_Specific(X), m_APInt(CRHS)))) in isTruePredicate()
9101 if (L0 == R0 && (match(L1, m_APInt(Unused)) || match(R1, m_APInt(Unused)))) { in isImpliedCondICmps()
9118 if (match(L1, m_APInt(Unused)) && match(R1, m_APInt(Unused))) in isImpliedCondICmps()
9324 if (match(BO.getOperand(1), m_APInt(C)) && !C->isZero()) { in setLimitsForBinOp()
9353 if (match(BO.getOperand(1), m_APInt(C))) in setLimitsForBinOp()
9364 if (match(BO.getOperand(1), m_APInt(C))) in setLimitsForBinOp()
9370 if (match(BO.getOperand(1), m_APInt(C)) && C->ult(Width)) { in setLimitsForBinOp()
9374 } else if (match(BO.getOperand(0), m_APInt(C))) { in setLimitsForBinOp()
9391 if (match(BO.getOperand(1), m_APInt(C)) && C->ult(Width)) { in setLimitsForBinOp()
9394 } else if (match(BO.getOperand(0), m_APInt(C))) { in setLimitsForBinOp()
9405 if (match(BO.getOperand(0), m_APInt(C))) { in setLimitsForBinOp()
9434 } else if (match(BO.getOperand(1), m_APInt(C)) && C->ult(Width)) { in setLimitsForBinOp()
9440 if (match(BO.getOperand(1), m_APInt(C))) { in setLimitsForBinOp()
9458 } else if (match(BO.getOperand(0), m_APInt(C))) { in setLimitsForBinOp()
9472 if (match(BO.getOperand(1), m_APInt(C)) && !C->isZero()) { in setLimitsForBinOp()
9475 } else if (match(BO.getOperand(0), m_APInt(C))) { in setLimitsForBinOp()
9482 if (match(BO.getOperand(1), m_APInt(C))) { in setLimitsForBinOp()
9486 } else if (match(BO.getOperand(0), m_APInt(C))) { in setLimitsForBinOp()
9499 if (match(BO.getOperand(1), m_APInt(C))) in setLimitsForBinOp()
9502 else if (match(BO.getOperand(0), m_APInt(C))) in setLimitsForBinOp()
9524 if (match(II.getOperand(0), m_APInt(C)) || in getRangeForIntrinsic()
9525 match(II.getOperand(1), m_APInt(C))) in getRangeForIntrinsic()
9529 if (match(II.getOperand(0), m_APInt(C)) || in getRangeForIntrinsic()
9530 match(II.getOperand(1), m_APInt(C))) { in getRangeForIntrinsic()
9544 if (match(II.getOperand(0), m_APInt(C))) in getRangeForIntrinsic()
9548 if (match(II.getOperand(1), m_APInt(C))) in getRangeForIntrinsic()
9553 if (match(II.getOperand(0), m_APInt(C))) { in getRangeForIntrinsic()
9563 } else if (match(II.getOperand(1), m_APInt(C))) { in getRangeForIntrinsic()
9579 if (!match(II.getOperand(0), m_APInt(C)) && in getRangeForIntrinsic()
9580 !match(II.getOperand(1), m_APInt(C))) in getRangeForIntrinsic()
9650 if (!match(LHS, m_APInt(C)) && !match(RHS, m_APInt(C))) in getRangeForSelectPattern()