Lines Matching defs:IsSigned
81 bool IsSigned) {
83 if (IsSigned)
93 bool IsSigned) {
102 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue())
105 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned);
106 if (IsSigned)
822 bool IsSigned = I.getOpcode() == Instruction::SDiv;
825 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) ||
826 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) {
827 APInt Product(C1->getBitWidth(), /*Val=*/0ULL, IsSigned);
828 if (!MultiplyOverflows(*C1, *C2, Product, IsSigned))
833 if ((IsSigned && match(LHS, m_NSWMul(m_Value(X), m_APInt(C1)))) ||
834 (!IsSigned && match(LHS, m_NUWMul(m_Value(X), m_APInt(C1))))) {
835 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned);
838 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) {
846 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) {
850 !IsSigned &&
858 if ((IsSigned && match(LHS, m_NSWShl(m_Value(X), m_APInt(C1))) &&
860 (!IsSigned && match(LHS, m_NUWShl(m_Value(X), m_APInt(C1))))) {
861 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned);
866 if (IsMultiple(*C2, C1Shifted, Quotient, IsSigned)) {
874 if (IsMultiple(C1Shifted, *C2, Quotient, IsSigned)) {
878 !IsSigned &&