Home
last modified time | relevance | path

Searched refs:Divisor (Results 1 – 17 of 17) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp32 Value *Divisor; member
35 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} in DivOpInfo()
53 Val1.Divisor == Val2.Divisor; in isEqual()
66 reinterpret_cast<uintptr_t>(Val.Divisor)) ^ in getHashValue()
87 Value *Divisor = Instr->getOperand(1); in insertFastDiv() local
89 if (isa<ConstantInt>(Divisor) || in insertFastDiv()
90 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) { in insertFastDiv()
109 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor); in insertFastDiv()
110 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor); in insertFastDiv()
112 SlowQuotientV = SlowBuilder.CreateUDiv(Dividend, Divisor); in insertFastDiv()
[all …]
DIntegerDivision.cpp34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() argument
59 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
61 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); in generateSignedRemainderCode()
80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, in generatedUnsignedRemainderCode() argument
89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode()
90 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode()
104 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, in generateSignedDivisionCode() argument
132 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
135 Value *Tmp3 = Builder.CreateXor(Tmp1, Divisor); in generateSignedDivisionCode()
151 static Value *generateUnsignedDivisionCode(Value *Dividend, Value *Divisor, in generateUnsignedDivisionCode() argument
[all …]
/external/llvm/lib/Support/
DScaledNumber.cpp58 uint32_t Divisor) { in divide32() argument
60 assert(Divisor && "expected non-zero divisor"); in divide32()
69 uint64_t Quotient = Dividend64 / Divisor; in divide32()
70 uint64_t Remainder = Dividend64 % Divisor; in divide32()
77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
81 uint64_t Divisor) { in divide64() argument
83 assert(Divisor && "expected non-zero divisor"); in divide64()
87 if (int Zeros = countTrailingZeros(Divisor)) { in divide64()
89 Divisor >>= Zeros; in divide64()
93 if (Divisor == 1) in divide64()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h139 std::pair<uint64_t, int16_t> divide64(uint64_t Dividend, uint64_t Divisor);
146 std::pair<uint32_t, int16_t> divide32(uint32_t Dividend, uint32_t Divisor);
154 std::pair<DigitsT, int16_t> getQuotient(DigitsT Dividend, DigitsT Divisor) { in getQuotient() argument
162 if (!Divisor) in getQuotient()
166 return divide64(Dividend, Divisor); in getQuotient()
167 return divide32(Dividend, Divisor); in getQuotient()
172 uint32_t Divisor) { in getQuotient32() argument
173 return getQuotient(Dividend, Divisor); in getQuotient32()
178 uint64_t Divisor) { in getQuotient64() argument
179 return getQuotient(Dividend, Divisor); in getQuotient64()
[all …]
/external/llvm/lib/CodeGen/
DTargetSchedule.cpp38 static unsigned gcd(unsigned Dividend, unsigned Divisor) { in gcd() argument
40 while(Divisor) { in gcd()
41 unsigned Rem = Dividend % Divisor; in gcd()
42 Dividend = Divisor; in gcd()
43 Divisor = Rem; in gcd()
/external/clang/test/SemaTemplate/
Dinstantiate-static-var.cpp2 template<typename T, T Divisor>
5 …static const T value = 10 / Divisor; // expected-error{{in-class initializer for static data membe…
/external/llvm/lib/IR/
DGCOV.cpp426 static uint32_t safeDiv(uint64_t Numerator, uint64_t Divisor) { in safeDiv() argument
429 return Numerator / Divisor; in safeDiv()
435 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { in branchDiv() argument
438 if (Numerator == Divisor) in branchDiv()
441 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor; in branchDiv()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp2671 SDValue TargetLowering::BuildSDIV(SDNode *N, const APInt &Divisor, in BuildSDIV() argument
2684 APInt::ms magics = Divisor.magic(); in BuildSDIV()
2701 if (Divisor.isStrictlyPositive() && magics.m.isNegative()) { in BuildSDIV()
2706 if (Divisor.isNegative() && magics.m.isStrictlyPositive()) { in BuildSDIV()
2728 SDValue TargetLowering::BuildUDIV(SDNode *N, const APInt &Divisor, in BuildUDIV() argument
2743 APInt::mu magics = Divisor.magicu(); in BuildUDIV()
2749 if (magics.a != 0 && !Divisor[0]) { in BuildUDIV()
2750 unsigned Shift = Divisor.countTrailingZeros(); in BuildUDIV()
2756 magics = Divisor.lshr(Shift).magicu(Shift); in BuildUDIV()
2775 assert(magics.s < Divisor.getBitWidth() && in BuildUDIV()
/external/llvm/include/llvm/Target/
DTargetLowering.h2669 SDValue BuildSDIV(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
2672 SDValue BuildUDIV(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
2675 virtual SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp1180 static Instruction *CvtFDivConstToReciprocal(Value *Dividend, Constant *Divisor, in CvtFDivConstToReciprocal() argument
1182 if (!isa<ConstantFP>(Divisor)) // TODO: handle vectors. in CvtFDivConstToReciprocal()
1185 const APFloat &FpVal = cast<ConstantFP>(Divisor)->getValueAPF(); in CvtFDivConstToReciprocal()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h459 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
DAArch64ISelLowering.cpp6923 AArch64TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
6929 !(Divisor.isPowerOf2() || (-Divisor).isPowerOf2())) in BuildSDIVPow2()
6934 unsigned Lg2 = Divisor.countTrailingZeros(); in BuildSDIVPow2()
6956 if (Divisor.isNonNegative()) in BuildSDIVPow2()
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.h467 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
DPPCISelLowering.cpp10397 PPCTargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
10405 !(Divisor.isPowerOf2() || (-Divisor).isPowerOf2())) in BuildSDIVPow2()
10411 bool IsNegPow2 = (-Divisor).isPowerOf2(); in BuildSDIVPow2()
10412 unsigned Lg2 = (IsNegPow2 ? -Divisor : Divisor).countTrailingZeros(); in BuildSDIVPow2()
/external/llvm/lib/Target/Mips/
DMipsISelLowering.cpp889 MachineOperand &Divisor = MI->getOperand(2); in insertDivByZeroTrap() local
891 .addReg(Divisor.getReg(), getKillRegState(Divisor.isKill())) in insertDivByZeroTrap()
899 Divisor.setIsKill(false); in insertDivByZeroTrap()
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp1561 const SCEVConstant *Divisor) { in isRemainderZero() argument
1563 APInt ConstDivisor = Divisor->getValue()->getValue(); in isRemainderZero()
/external/libexif/po/
Dde.po4170 "Aufnahme des Bildes an. Wenn der Divisor 0 ist, wurde kein Digitalzoom "