Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp158 Value *Divisor = SlowDivOrRem->getOperand(1); in getReplacement() local
159 DivRemMapKey Key(isSignedOp(), Dividend, Divisor); in getReplacement()
269 Value *Divisor = SlowDivOrRem->getOperand(1); in createSlowBB() local
272 DivRemPair.Quotient = Builder.CreateSDiv(Dividend, Divisor); in createSlowBB()
273 DivRemPair.Remainder = Builder.CreateSRem(Dividend, Divisor); in createSlowBB()
275 DivRemPair.Quotient = Builder.CreateUDiv(Dividend, Divisor); in createSlowBB()
276 DivRemPair.Remainder = Builder.CreateURem(Dividend, Divisor); in createSlowBB()
292 Value *Divisor = SlowDivOrRem->getOperand(1); in createFastBB() local
294 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); in createFastBB()
352 Value *Divisor = SlowDivOrRem->getOperand(1); in insertFastDivAndRem() local
[all …]
DIntegerDivision.cpp33 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() argument
58 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
60 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); in generateSignedRemainderCode()
79 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, in generatedUnsignedRemainderCode() argument
88 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode()
89 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode()
103 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, in generateSignedDivisionCode() argument
131 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
134 Value *Tmp3 = Builder.CreateXor(Tmp1, Divisor); in generateSignedDivisionCode()
150 static Value *generateUnsignedDivisionCode(Value *Dividend, Value *Divisor, in generateUnsignedDivisionCode() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DBypassSlowDivision.h33 AssertingVH<Value> Divisor; member
38 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} in DivRemMapKey()
44 Val1.Divisor == Val2.Divisor;
59 static_cast<Value *>(Val.Divisor))) ^
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DScaledNumber.h138 std::pair<uint64_t, int16_t> divide64(uint64_t Dividend, uint64_t Divisor);
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) { in getQuotient() argument
161 if (!Divisor) in getQuotient()
165 return divide64(Dividend, Divisor); in getQuotient()
166 return divide32(Dividend, Divisor); in getQuotient()
171 uint32_t Divisor) { in getQuotient32() argument
172 return getQuotient(Dividend, Divisor); in getQuotient32()
177 uint64_t Divisor) { in getQuotient64() argument
178 return getQuotient(Dividend, Divisor); in getQuotient64()
[all …]
DAlignment.h377 inline Align operator/(Align Lhs, uint64_t Divisor) {
378 assert(llvm::isPowerOf2_64(Divisor) &&
381 return Align(Lhs.value() / Divisor);
384 inline MaybeAlign operator/(MaybeAlign Lhs, uint64_t Divisor) {
385 assert(llvm::isPowerOf2_64(Divisor) &&
387 return Lhs ? Lhs.getValue() / Divisor : MaybeAlign();
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DDivRemPairs.cpp56 Value *Divisor; in matchExpandedRem() local
61 m_c_Mul(m_CombineAnd(m_IDiv(m_Specific(Dividend), m_Value(Divisor)), in matchExpandedRem()
63 m_Deferred(Divisor)))) in matchExpandedRem()
69 M.Key.Divisor = Divisor; in matchExpandedRem()
DLICM.cpp872 auto Divisor = I.getOperand(1); in hoistRegion() local
873 auto One = llvm::ConstantFP::get(Divisor->getType(), 1.0); in hoistRegion()
874 auto ReciprocalDivisor = BinaryOperator::CreateFDiv(One, Divisor); in hoistRegion()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTargetSchedule.cpp47 static unsigned gcd(unsigned Dividend, unsigned Divisor) { in gcd() argument
49 while (Divisor) { in gcd()
50 unsigned Rem = Dividend % Divisor; in gcd()
51 Dividend = Divisor; in gcd()
52 Divisor = Rem; in gcd()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DGCOV.cpp568 static uint32_t safeDiv(uint64_t Numerator, uint64_t Divisor) { in safeDiv() argument
571 return Numerator / Divisor; in safeDiv()
577 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { in branchDiv() argument
580 if (Numerator == Divisor) in branchDiv()
583 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor; in branchDiv()
/third_party/typescript/tests/arkTSTest/testcase/arkts-limited-throw/
Darkts-limited-throw-6-ok.ets21 throw new RangeError("Divisor cannot be zero");
/third_party/mesa3d/src/mesa/main/
Dglthread_varray.c65 vao->Attrib[i].Divisor = 0; in _mesa_glthread_reset_vao()
325 vao->Attrib[attrib].Divisor = divisor; in _mesa_glthread_AttribDivisor()
502 vao->Attrib[i].Divisor = divisor; in binding_divisor()
Dglthread.h88 GLuint Divisor; member
Dglthread_draw.c138 unsigned instance_div = vao->Attrib[binding_index].Divisor; in upload_vertices()
217 unsigned instance_div = vao->Attrib[binding_index].Divisor; in upload_vertices()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp4651 APInt Divisor = C->getAPIntValue(); in BuildExactSDIV() local
4652 unsigned Shift = Divisor.countTrailingZeros(); in BuildExactSDIV()
4654 Divisor.ashrInPlace(Shift); in BuildExactSDIV()
4659 APInt Factor = Divisor; in BuildExactSDIV()
4660 while ((t = Divisor * Factor) != 1) in BuildExactSDIV()
4661 Factor *= APInt(Divisor.getBitWidth(), 2) - t; in BuildExactSDIV()
4694 SDValue TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
4733 const APInt &Divisor = C->getAPIntValue(); in BuildSDIV() local
4734 APInt::ms magics = Divisor.magic(); in BuildSDIV()
4738 if (Divisor.isOneValue() || Divisor.isAllOnesValue()) { in BuildSDIV()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DInstancingTest.cpp335 TEST_P(InstancingTest, Instances##numInstance##Divisor##divisor) \
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.h741 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_instanced_arrays.txt319 …VERTEX_ATTRIB_ARRAY_DIVISOR_NV 8xZ+ GetVertexAttrib 0 Instance Divisor 2.8 vertex…
/third_party/openGLES/extensions/NV/
DNV_instanced_arrays.txt319 …VERTEX_ATTRIB_ARRAY_DIVISOR_NV 8xZ+ GetVertexAttrib 0 Instance Divisor 2.8 vertex…
/third_party/skia/third_party/externals/opengl-registry/extensions/ANGLE/
DANGLE_instanced_arrays.txt302 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 8*xZ+ GetVertexAttrib 0 Instance Divisor 2.8
/third_party/skia/third_party/externals/angle2/extensions/
DANGLE_instanced_arrays.txt302 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 8*xZ+ GetVertexAttrib 0 Instance Divisor 2.8
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h761 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
/third_party/openGLES/extensions/ANGLE/
DANGLE_instanced_arrays.txt302 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 8*xZ+ GetVertexAttrib 0 Instance Divisor 2.8
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.h752 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceTargetLoweringX8664.cpp1964 const int32_t Divisor = C->getValue(); in lowerArithmetic() local
1965 const uint32_t UDivisor = Divisor; in lowerArithmetic()
1966 if (Divisor > 0 && llvm::isPowerOf2_32(UDivisor)) { in lowerArithmetic()
2064 const int32_t Divisor = C->getValue(); in lowerArithmetic() local
2065 const uint32_t UDivisor = Divisor; in lowerArithmetic()
2066 if (Divisor > 0 && llvm::isPowerOf2_32(UDivisor)) { in lowerArithmetic()

12