Lines Matching refs:m_APInt
785 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
788 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
791 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
794 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
808 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
814 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
816 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
836 if (match(Op1, m_APInt(C1)) && in foldNoWrapAdd()
837 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd()
901 if (!match(Op1, m_APInt(C))) in foldAddWithConstant()
912 if (match(Op0, m_Or(m_Value(), m_APInt(C2))) && *C2 == -*C) in foldAddWithConstant()
929 if (match(Op0, m_ZExt(m_Xor(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant()
933 if (match(Op0, m_Xor(m_Value(X), m_APInt(C2)))) { in foldAddWithConstant()
979 if (match(Op0, m_AShr(m_Shl(m_Value(X), m_APInt(C2)), m_APInt(C3))) && in foldAddWithConstant()
989 if (match(Op0, m_OneUse(m_And(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant()
1003 if (match(E, m_Mul(m_Value(Op), m_APInt(AI)))) { in MatchMul()
1007 if (match(E, m_Shl(m_Value(Op), m_APInt(AI)))) { in MatchMul()
1022 if (match(E, m_SRem(m_Value(Op), m_APInt(AI)))) { in MatchRem()
1027 if (match(E, m_URem(m_Value(Op), m_APInt(AI)))) { in MatchRem()
1031 if (match(E, m_And(m_Value(Op), m_APInt(AI))) && (*AI + 1).isPowerOf2()) { in MatchRem()
1043 if (IsSigned && match(E, m_SDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1048 if (match(E, m_UDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1052 if (match(E, m_LShr(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1142 if (match(&I, m_Add(m_UMin(m_Value(X), m_APInt(NotC)), m_APInt(C))) && in foldToUnsignedSaturatedAdd()
1213 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()
1891 if (match(Op0, m_APInt(Op0C)) && Op0C->isMask()) { in visitSub()
2099 if (match(Op1, m_AShr(m_Value(A), m_APInt(ShAmt))) && in visitSub()
2117 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC))) && in visitSub()
2118 match(Op1, m_And(m_Specific(X), m_APInt(AndC)))) { in visitSub()