/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | BypassSlowDivision.h | 33 AssertingVH<Value> Divisor; member in struct:llvm::DivRemMapKey 38 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} 44 Val1.Divisor == Val2.Divisor; 59 static_cast<Value *>(Val.Divisor))) ^
|
/freebsd-11-stable/sys/contrib/dev/acpica/components/utilities/ |
H A D | utmath.c | 432 * Divisor - 32-bit divisor 447 UINT32 Divisor, 461 if (Divisor == 0) 473 ACPI_DIV_64_BY_32 (0, DividendOvl.Part.Hi, Divisor, 476 ACPI_DIV_64_BY_32 (Remainder32, DividendOvl.Part.Lo, Divisor, 499 * InDivisor - Divisor 517 UINT64_OVERLAY Divisor; local 538 Divisor.Full = InDivisor; 540 if (Divisor.Part.Hi == 0) 552 ACPI_DIV_64_BY_32 (0, Dividend.Part.Hi, Divisor 445 AcpiUtShortDivide( UINT64 Dividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder) argument 659 AcpiUtShortDivide( UINT64 InDividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | ScaledNumber.cpp | 58 uint32_t Divisor) { 60 assert(Divisor && "expected non-zero divisor"); 69 uint64_t Quotient = Dividend64 / Divisor; 70 uint64_t Remainder = Dividend64 % Divisor; 77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); 81 uint64_t Divisor) { 83 assert(Divisor && "expected non-zero divisor"); 87 if (int Zeros = countTrailingZeros(Divisor)) { 89 Divisor >>= Zeros; 93 if (Divisor 57 divide32(uint32_t Dividend, uint32_t Divisor) argument 80 divide64(uint64_t Dividend, uint64_t Divisor) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | BypassSlowDivision.cpp | 158 Value *Divisor = SlowDivOrRem->getOperand(1); local 159 DivRemMapKey Key(isSignedOp(), Dividend, Divisor); local 269 Value *Divisor = SlowDivOrRem->getOperand(1); 272 DivRemPair.Quotient = Builder.CreateSDiv(Dividend, Divisor); 273 DivRemPair.Remainder = Builder.CreateSRem(Dividend, Divisor); 275 DivRemPair.Quotient = Builder.CreateUDiv(Dividend, Divisor); 276 DivRemPair.Remainder = Builder.CreateURem(Dividend, Divisor); 292 Value *Divisor = SlowDivOrRem->getOperand(1); 294 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); 352 Value *Divisor [all...] |
H A D | IntegerDivision.cpp | 33 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, argument 58 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); 60 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); 79 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, argument 81 // Remainder = Dividend - Quotient*Divisor 88 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); 89 Value *Product = Builder.CreateMul(Divisor, Quotient); 103 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, argument 131 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); 134 Value *Tmp3 = Builder.CreateXor(Tmp1, Divisor); 150 generateUnsignedDivisionCode(Value *Dividend, Value *Divisor, IRBuilder<> &Builder) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | DivRemPairs.cpp | 56 Value *Divisor; 61 m_c_Mul(m_CombineAnd(m_IDiv(m_Specific(Dividend), m_Value(Divisor)), 63 m_Deferred(Divisor)))) 69 M.Key.Divisor = Divisor;
|
H A D | LICM.cpp | 872 auto Divisor = I.getOperand(1); local 873 auto One = llvm::ConstantFP::get(Divisor->getType(), 1.0); 874 auto ReciprocalDivisor = BinaryOperator::CreateFDiv(One, Divisor);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TargetSchedule.cpp | 47 static unsigned gcd(unsigned Dividend, unsigned Divisor) { argument 48 // Dividend and Divisor will be naturally swapped as needed. 49 while (Divisor) { 50 unsigned Rem = Dividend % Divisor; 51 Dividend = Divisor; 52 Divisor = Rem;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Alignment.h | 377 inline Align operator/(Align Lhs, uint64_t Divisor) { 378 assert(llvm::isPowerOf2_64(Divisor) && 379 "Divisor must be positive and a power of 2"); 381 return Align(Lhs.value() / Divisor); 384 inline MaybeAlign operator/(MaybeAlign Lhs, uint64_t Divisor) { 385 assert(llvm::isPowerOf2_64(Divisor) && 386 "Divisor must be positive and a power of 2"); 387 return Lhs ? Lhs.getValue() / Divisor : MaybeAlign();
|
H A D | ScaledNumber.h | 137 /// \pre \c Dividend and \c Divisor are non-zero. 138 std::pair<uint64_t, int16_t> divide64(uint64_t Dividend, uint64_t Divisor); 144 /// \pre \c Dividend and \c Divisor are non-zero. 145 std::pair<uint32_t, int16_t> divide32(uint32_t Dividend, uint32_t Divisor); 153 std::pair<DigitsT, int16_t> getQuotient(DigitsT Dividend, DigitsT Divisor) { argument 161 if (!Divisor) 165 return divide64(Dividend, Divisor); 166 return divide32(Dividend, Divisor); 171 uint32_t Divisor) { 172 return getQuotient(Dividend, Divisor); 170 getQuotient32(uint32_t Dividend, uint32_t Divisor) argument 176 getQuotient64(uint64_t Dividend, uint64_t Divisor) argument 683 getQuotient(DigitsType Dividend, DigitsType Divisor) argument [all...] |
/freebsd-11-stable/stand/i386/boot2/ |
H A D | sio.S | 33 subb $0x3,%dl # Divisor latch reg
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | GCOV.cpp | 568 static uint32_t safeDiv(uint64_t Numerator, uint64_t Divisor) { 571 return Numerator / Divisor; 577 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { 580 if (Numerator == Divisor) 583 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor;
|
/freebsd-11-stable/sys/contrib/edk2/Include/Library/ |
H A D | BaseLib.h | 3611 unsigned value Divisor and generates a 64-bit unsigned quotient. This 3614 If Divisor is 0, then ASSERT(). 3617 @param Divisor A 32-bit unsigned value. 3619 @return Dividend / Divisor. 3626 IN UINT32 Divisor 3635 unsigned value Divisor and generates a 32-bit remainder. This function 3638 If Divisor is 0, then ASSERT(). 3641 @param Divisor A 32-bit unsigned value. 3643 @return Dividend % Divisor. 3650 IN UINT32 Divisor [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 4651 APInt Divisor = C->getAPIntValue(); 4652 unsigned Shift = Divisor.countTrailingZeros(); 4654 Divisor.ashrInPlace(Shift); 4659 APInt Factor = Divisor; 4660 while ((t = Divisor * Factor) != 1) 4661 Factor *= APInt(Divisor.getBitWidth(), 2) - t; 4694 SDValue TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, argument 4733 const APInt &Divisor = C->getAPIntValue(); 4734 APInt::ms magics = Divisor.magic(); 4738 if (Divisor [all...] |
H A D | SelectionDAG.cpp | 4867 SDValue Divisor = Ops[1]; 4868 if (Divisor.isUndef() || isNullConstant(Divisor)) 4871 return ISD::isBuildVectorOfConstantSDNodes(Divisor.getNode()) && 4872 llvm::any_of(Divisor->op_values(),
|
/freebsd-11-stable/sys/contrib/dev/acpica/include/ |
H A D | acmacros.h | 312 #define _ACPI_MOD(value, Divisor) ((UINT32) ((value) & ((Divisor) -1)))
|
H A D | acutils.h | 917 UINT32 Divisor,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.h | 761 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
|
H A D | AArch64ISelLowering.cpp | 9692 AArch64TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, argument 9702 !(Divisor.isPowerOf2() || (-Divisor).isPowerOf2())) 9707 unsigned Lg2 = Divisor.countTrailingZeros(); 9727 if (Divisor.isNonNegative())
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.h | 741 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.h | 752 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.h | 1531 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.cpp | 1274 MachineOperand &Divisor = MI.getOperand(2); local 1277 .addReg(Divisor.getReg(), getKillRegState(Divisor.isKill())) 1285 // Clear Divisor's kill flag. 1286 Divisor.setIsKill(false);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | DependenceAnalysis.cpp | 1661 const SCEVConstant *Divisor) { 1663 const APInt &ConstDivisor = Divisor->getAPInt(); 1660 isRemainderZero(const SCEVConstant *Dividend, const SCEVConstant *Divisor) argument
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetLowering.h | 3992 virtual SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor,
|