Lines Matching refs:m_APInt

771     if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1))))  in checkForNegativeOperand()
774 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
777 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
780 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
794 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
800 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
802 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
822 if (match(Op1, m_APInt(C1)) && in foldNoWrapAdd()
823 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd()
887 if (!match(Op1, m_APInt(C))) in foldAddWithConstant()
898 if (match(Op0, m_Or(m_Value(), m_APInt(C2))) && *C2 == -*C) in foldAddWithConstant()
915 if (match(Op0, m_ZExt(m_Xor(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant()
919 if (match(Op0, m_Xor(m_Value(X), m_APInt(C2)))) { in foldAddWithConstant()
965 if (match(Op0, m_AShr(m_Shl(m_Value(X), m_APInt(C2)), m_APInt(C3))) && in foldAddWithConstant()
975 if (match(Op0, m_OneUse(m_And(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant()
989 if (match(E, m_Mul(m_Value(Op), m_APInt(AI)))) { in MatchMul()
993 if (match(E, m_Shl(m_Value(Op), m_APInt(AI)))) { in MatchMul()
1008 if (match(E, m_SRem(m_Value(Op), m_APInt(AI)))) { in MatchRem()
1013 if (match(E, m_URem(m_Value(Op), m_APInt(AI)))) { in MatchRem()
1017 if (match(E, m_And(m_Value(Op), m_APInt(AI))) && (*AI + 1).isPowerOf2()) { in MatchRem()
1029 if (IsSigned && match(E, m_SDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1034 if (match(E, m_UDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1038 if (match(E, m_LShr(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1128 if (match(&I, m_Add(m_UMin(m_Value(X), m_APInt(NotC)), m_APInt(C))) && in foldToUnsignedSaturatedAdd()
1199 if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1363 if (match(LHS, m_Shl(m_SDiv(m_Specific(RHS), m_APInt(C1)), m_APInt(C2)))) { in visitAdd()
1373 if (match(&I, m_c_Add(m_And(m_Value(A), m_APInt(C1)), m_Deferred(A))) && in visitAdd()
1970 if (match(Op0, m_APInt(Op0C)) && Op0C->isMask()) { in visitSub()
2168 if (match(Op1, m_AShr(m_Value(A), m_APInt(ShAmt))) && in visitSub()
2186 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC))) && in visitSub()
2187 match(Op1, m_And(m_Specific(X), m_APInt(AndC)))) { in visitSub()