Lines Matching defs:Quotient
1129 /// True if C1 is a multiple of C2. Quotient contains C1/C2.
1130 static bool isMultiple(const APInt &C1, const APInt &C2, APInt &Quotient,
1144 APInt::sdivrem(C1, C2, Quotient, Remainder);
1146 APInt::udivrem(C1, C2, Quotient, Remainder);
1301 APInt Quotient(C2->getBitWidth(), /*val=*/0ULL, IsSigned);
1306 if (isMultiple(*C2, *C1, Quotient, IsSigned)) {
1308 ConstantInt::get(Ty, Quotient));
1314 if (isMultiple(*C1, *C2, Quotient, IsSigned)) {
1316 ConstantInt::get(Ty, Quotient));
1332 if (isMultiple(*C2, C1Shifted, Quotient, IsSigned)) {
1334 ConstantInt::get(Ty, Quotient));
1340 if (isMultiple(C1Shifted, *C2, Quotient, IsSigned)) {
1342 ConstantInt::get(Ty, Quotient));
1357 isMultiple(*C1, *C2, Quotient, IsSigned)) {
1358 return BinaryOperator::CreateNSWAdd(X, ConstantInt::get(Ty, Quotient));