Lines Matching defs:Quotient
1059 /// True if C1 is a multiple of C2. Quotient contains C1/C2.
1060 static bool isMultiple(const APInt &C1, const APInt &C2, APInt &Quotient,
1074 APInt::sdivrem(C1, C2, Quotient, Remainder);
1076 APInt::udivrem(C1, C2, Quotient, Remainder);
1206 APInt Quotient(C2->getBitWidth(), /*val=*/0ULL, IsSigned);
1211 if (isMultiple(*C2, *C1, Quotient, IsSigned)) {
1213 ConstantInt::get(Ty, Quotient));
1219 if (isMultiple(*C1, *C2, Quotient, IsSigned)) {
1221 ConstantInt::get(Ty, Quotient));
1237 if (isMultiple(*C2, C1Shifted, Quotient, IsSigned)) {
1239 ConstantInt::get(Ty, Quotient));
1245 if (isMultiple(C1Shifted, *C2, Quotient, IsSigned)) {
1247 ConstantInt::get(Ty, Quotient));
1262 isMultiple(*C1, *C2, Quotient, IsSigned)) {
1263 return BinaryOperator::CreateNSWAdd(X, ConstantInt::get(Ty, Quotient));