/external/llvm/lib/Transforms/Utils/ |
D | BypassSlowDivision.cpp | 31 Value *Dividend; member 35 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} in DivOpInfo() 52 Val1.Dividend == Val2.Dividend && in isEqual() 65 return (unsigned)(reinterpret_cast<uintptr_t>(Val.Dividend) ^ in getHashValue() 82 Value *Dividend = I->getOperand(0); in insertFastDiv() local 86 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) { in insertFastDiv() 104 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor); in insertFastDiv() 105 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor); in insertFastDiv() 107 SlowQuotientV = SlowBuilder.CreateUDiv(Dividend, Divisor); in insertFastDiv() 108 SlowRemainderV = SlowBuilder.CreateURem(Dividend, Divisor); in insertFastDiv() [all …]
|
D | IntegerDivision.cpp | 34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() argument 36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedRemainderCode() 58 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode() 60 Value *DvdXor = Builder.CreateXor(Dividend, DividendSign); in generateSignedRemainderCode() 80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, in generatedUnsignedRemainderCode() argument 89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode() 91 Value *Remainder = Builder.CreateSub(Dividend, Product); in generatedUnsignedRemainderCode() 104 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, in generateSignedDivisionCode() argument 108 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedDivisionCode() 131 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | ScaledNumber.cpp | 58 std::pair<uint32_t, int16_t> ScaledNumbers::divide32(uint32_t Dividend, in divide32() argument 60 assert(Dividend && "expected non-zero dividend"); in divide32() 64 uint64_t Dividend64 = Dividend; in divide32() 81 std::pair<uint64_t, int16_t> ScaledNumbers::divide64(uint64_t Dividend, in divide64() argument 83 assert(Dividend && "expected non-zero dividend"); in divide64() 95 return std::make_pair(Dividend, Shift); in divide64() 98 if (int Zeros = countLeadingZeros(Dividend)) { in divide64() 100 Dividend <<= Zeros; in divide64() 104 uint64_t Quotient = Dividend / Divisor; in divide64() 105 Dividend %= Divisor; in divide64() [all …]
|
/external/llvm/lib/Support/ |
D | ScaledNumber.cpp | 58 std::pair<uint32_t, int16_t> ScaledNumbers::divide32(uint32_t Dividend, in divide32() argument 60 assert(Dividend && "expected non-zero dividend"); in divide32() 64 uint64_t Dividend64 = Dividend; in divide32() 81 std::pair<uint64_t, int16_t> ScaledNumbers::divide64(uint64_t Dividend, in divide64() argument 83 assert(Dividend && "expected non-zero dividend"); in divide64() 95 return std::make_pair(Dividend, Shift); in divide64() 98 if (int Zeros = countLeadingZeros(Dividend)) { in divide64() 100 Dividend <<= Zeros; in divide64() 104 uint64_t Quotient = Dividend / Divisor; in divide64() 105 Dividend %= Divisor; in divide64() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.Examples/ |
D | MathExamples.cs | 29 DivReply result = client.Div(new DivArgs { Dividend = 10, Divisor = 3 }); in DivExample() 35 DivReply result = await client.DivAsync(new DivArgs { Dividend = 4, Divisor = 5 }); in DivAsyncExample() 68 new DivArgs { Dividend = 10, Divisor = 3 }, in DivManyExample() 69 new DivArgs { Dividend = 100, Divisor = 21 }, in DivManyExample() 70 new DivArgs { Dividend = 7, Divisor = 2 } in DivManyExample() 95 …DivReply result = await client.DivAsync(new DivArgs { Dividend = sum.Num_, Divisor = numbers.Count… in DependendRequestsExample() 106 DivReply result = await client.DivAsync(new DivArgs { Dividend = 5, Divisor = 0 }); in HandleErrorExample() 125 var call = client.DivAsync(new DivArgs { Dividend = 5, Divisor = 0 }, requestHeaders); in MetadataExample()
|
D | Math.cs | 89 public long Dividend { property in Math.DivArgs 120 if (Dividend != other.Dividend) return false; in Equals() 128 if (Dividend != 0L) hash ^= Dividend.GetHashCode(); in GetHashCode() 143 if (Dividend != 0L) { in WriteTo() 145 output.WriteInt64(Dividend); in WriteTo() 159 if (Dividend != 0L) { in CalculateSize() 160 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Dividend); in CalculateSize() 176 if (other.Dividend != 0L) { in MergeFrom() 177 Dividend = other.Dividend; in MergeFrom() 194 Dividend = input.ReadInt64(); in MergeFrom()
|
D | MathServiceImpl.cs | 77 long quotient = args.Dividend / args.Divisor; in DivInternal() 78 long remainder = args.Dividend % args.Divisor; in DivInternal()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | BypassSlowDivision.h | 32 Value *Dividend; member 36 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} in DivRemMapKey() 41 return Val1.SignedOp == Val2.SignedOp && Val1.Dividend == Val2.Dividend && 54 return (unsigned)(reinterpret_cast<uintptr_t>(Val.Dividend) ^
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | BypassSlowDivision.cpp | 158 Value *Dividend = SlowDivOrRem->getOperand(0); in getReplacement() local 160 DivRemMapKey Key(isSignedOp(), Dividend, Divisor); in getReplacement() 269 Value *Dividend = SlowDivOrRem->getOperand(0); in createSlowBB() local 273 DivRemPair.Quotient = Builder.CreateSDiv(Dividend, Divisor); in createSlowBB() 274 DivRemPair.Remainder = Builder.CreateSRem(Dividend, Divisor); in createSlowBB() 276 DivRemPair.Quotient = Builder.CreateUDiv(Dividend, Divisor); in createSlowBB() 277 DivRemPair.Remainder = Builder.CreateURem(Dividend, Divisor); in createSlowBB() 292 Value *Dividend = SlowDivOrRem->getOperand(0); in createFastBB() local 297 Builder.CreateCast(Instruction::Trunc, Dividend, BypassType); in createFastBB() 352 Value *Dividend = SlowDivOrRem->getOperand(0); in insertFastDivAndRem() local [all …]
|
D | IntegerDivision.cpp | 34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() argument 36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedRemainderCode() 58 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode() 60 Value *DvdXor = Builder.CreateXor(Dividend, DividendSign); in generateSignedRemainderCode() 80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, in generatedUnsignedRemainderCode() argument 89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode() 91 Value *Remainder = Builder.CreateSub(Dividend, Product); in generatedUnsignedRemainderCode() 104 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, in generateSignedDivisionCode() argument 108 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedDivisionCode() 131 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/ |
D | MathClientServerTests.cs | 64 DivReply response = client.Div(new DivArgs { Dividend = 10, Divisor = 3 }); in Div1() 72 DivReply response = client.Div(new DivArgs { Dividend = 0, Divisor = 1 }); in Div2() 80 … var ex = Assert.Throws<RpcException>(() => client.Div(new DivArgs { Dividend = 0, Divisor = 0 })); in DivByZero() 87 DivReply response = await client.DivAsync(new DivArgs { Dividend = 10, Divisor = 3 }); in DivAsync() 164 new DivArgs { Dividend = 10, Divisor = 3 }, in DivMany() 165 new DivArgs { Dividend = 100, Divisor = 21 }, in DivMany() 166 new DivArgs { Dividend = 7, Divisor = 2 } in DivMany()
|
D | MathServiceImplTestabilityTest.cs | 42 …var response = await mathImpl.Div(new DivArgs { Dividend = 10, Divisor = 2 }, fakeServerCallContex… in ServerCallImplIsTestable()
|
/external/swiftshader/third_party/LLVM/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 627 SDNode *Dividend; in Select() local 629 Dividend = CurDAG->getMachineNode(SystemZ::MOVSX64rr32, dl, MVT::i64, N0); in Select() 631 Dividend = N0.getNode(); in Select() 636 Dividend = in Select() 638 SDValue(Tmp, 0), SDValue(Dividend, 0), in Select() 642 SDValue DivVal = SDValue(Dividend, 0); in Select() 650 Result = CurDAG->getMachineNode(Opc, dl, ResVT, SDValue(Dividend, 0), N1); in Select() 709 SDNode *Dividend = N0.getNode(); in Select() local 717 Dividend = in Select() 719 SDValue(Tmp, 0), SDValue(Dividend, 0), in Select() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 139 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 160 if (!Dividend) in getQuotient() 166 return divide64(Dividend, Divisor); in getQuotient() 167 return divide32(Dividend, Divisor); in getQuotient() 171 inline std::pair<uint32_t, int16_t> getQuotient32(uint32_t Dividend, in getQuotient32() argument 173 return getQuotient(Dividend, Divisor); in getQuotient32() 177 inline std::pair<uint64_t, int16_t> getQuotient64(uint64_t Dividend, in getQuotient64() argument 179 return getQuotient(Dividend, Divisor); in getQuotient64() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 139 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 160 if (!Dividend) in getQuotient() 166 return divide64(Dividend, Divisor); in getQuotient() 167 return divide32(Dividend, Divisor); in getQuotient() 171 inline std::pair<uint32_t, int16_t> getQuotient32(uint32_t Dividend, in getQuotient32() argument 173 return getQuotient(Dividend, Divisor); in getQuotient32() 177 inline std::pair<uint64_t, int16_t> getQuotient64(uint64_t Dividend, in getQuotient64() argument 179 return getQuotient(Dividend, Divisor); in getQuotient64() [all …]
|
/external/llvm/lib/CodeGen/ |
D | TargetSchedule.cpp | 38 static unsigned gcd(unsigned Dividend, unsigned Divisor) { in gcd() argument 41 unsigned Rem = Dividend % Divisor; in gcd() 42 Dividend = Divisor; in gcd() 45 return Dividend; in gcd()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetSchedule.cpp | 48 static unsigned gcd(unsigned Dividend, unsigned Divisor) { in gcd() argument 51 unsigned Rem = Dividend % Divisor; in gcd() 52 Dividend = Divisor; in gcd() 55 return Dividend; in gcd()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 1220 static Instruction *CvtFDivConstToReciprocal(Value *Dividend, Constant *Divisor, in CvtFDivConstToReciprocal() argument 1239 R = ConstantFP::get(Dividend->getType()->getContext(), Reciprocal); in CvtFDivConstToReciprocal() 1240 return BinaryOperator::CreateFMul(Dividend, R); in CvtFDivConstToReciprocal()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ScalarEvolution.cpp | 747 const SCEV *Dividend = SE.getTruncateOrZeroExtend(It, CalculationTy); in BinomialCoefficient() local 750 Dividend = SE.getMulExpr(Dividend, in BinomialCoefficient() 755 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor)); in BinomialCoefficient()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 1649 bool isRemainderZero(const SCEVConstant *Dividend, in isRemainderZero() argument 1651 const APInt &ConstDividend = Dividend->getAPInt(); in isRemainderZero()
|
D | ScalarEvolution.cpp | 1180 const SCEV *Dividend = SE.getTruncateOrZeroExtend(It, CalculationTy); in BinomialCoefficient() local 1183 Dividend = SE.getMulExpr(Dividend, in BinomialCoefficient() 1188 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor)); in BinomialCoefficient()
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 1583 bool isRemainderZero(const SCEVConstant *Dividend, in isRemainderZero() argument 1585 const APInt &ConstDividend = Dividend->getAPInt(); in isRemainderZero()
|
D | ScalarEvolution.cpp | 1022 const SCEV *Dividend = SE.getTruncateOrZeroExtend(It, CalculationTy); in BinomialCoefficient() local 1025 Dividend = SE.getMulExpr(Dividend, in BinomialCoefficient() 1030 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor)); in BinomialCoefficient()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 13969 const SDValue Dividend = Op->getOperand(0); in LowerDivRem() local 13971 SDValue Div = DAG.getNode(DivOpcode, dl, VT, Dividend, Divisor); in LowerDivRem() 13973 SDValue Rem = DAG.getNode(ISD::SUB, dl, VT, Dividend, Mul); in LowerDivRem()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 8762 SDValue Dividend = U->getOperand(0); in combineRepeatedFPDivisors() local 8763 if (Dividend != FPOne) { in combineRepeatedFPDivisors() 8764 SDValue NewNode = DAG.getNode(ISD::FMUL, SDLoc(U), VT, Dividend, in combineRepeatedFPDivisors()
|