Lines Matching refs:Quotient
91 /// \brief True if C2 is a multiple of C1. Quotient contains C2/C1.
92 static bool IsMultiple(const APInt &C1, const APInt &C2, APInt &Quotient,
107 APInt::sdivrem(C1, C2, Quotient, Remainder);
109 APInt::udivrem(C1, C2, Quotient, Remainder);
821 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned);
824 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) {
826 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient));
832 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) {
834 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient));
847 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned);
852 if (IsMultiple(*C2, C1Shifted, Quotient, IsSigned)) {
854 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient));
860 if (IsMultiple(C1Shifted, *C2, Quotient, IsSigned)) {
862 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient));