Home
last modified time | relevance | path

Searched refs:Dividend (Results 1 – 9 of 9) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp31 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()
86 Value *Dividend = Instr->getOperand(0); in insertFastDiv() local
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()
113 SlowRemainderV = SlowBuilder.CreateURem(Dividend, Divisor); in insertFastDiv()
[all …]
DIntegerDivision.cpp34 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/llvm/lib/Support/
DScaledNumber.cpp57 std::pair<uint32_t, int16_t> ScaledNumbers::divide32(uint32_t Dividend, in divide32() argument
59 assert(Dividend && "expected non-zero dividend"); in divide32()
63 uint64_t Dividend64 = Dividend; in divide32()
80 std::pair<uint64_t, int16_t> ScaledNumbers::divide64(uint64_t Dividend, in divide64() argument
82 assert(Dividend && "expected non-zero dividend"); in divide64()
94 return std::make_pair(Dividend, Shift); in divide64()
97 if (int Zeros = countLeadingZeros(Dividend)) { in divide64()
99 Dividend <<= Zeros; in divide64()
103 uint64_t Quotient = Dividend / Divisor; in divide64()
104 Dividend %= Divisor; 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
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/
DTargetSchedule.cpp38 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/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp1190 static Instruction *CvtFDivConstToReciprocal(Value *Dividend, Constant *Divisor, in CvtFDivConstToReciprocal() argument
1209 R = ConstantFP::get(Dividend->getType()->getContext(), Reciprocal); in CvtFDivConstToReciprocal()
1210 return BinaryOperator::CreateFMul(Dividend, R); in CvtFDivConstToReciprocal()
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp1609 bool isRemainderZero(const SCEVConstant *Dividend, in isRemainderZero() argument
1611 APInt ConstDividend = Dividend->getAPInt(); in isRemainderZero()
DScalarEvolution.cpp1021 const SCEV *Dividend = SE.getTruncateOrZeroExtend(It, CalculationTy); in BinomialCoefficient() local
1024 Dividend = SE.getMulExpr(Dividend, in BinomialCoefficient()
1029 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor)); in BinomialCoefficient()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp8624 SDValue Dividend = U->getOperand(0); in combineRepeatedFPDivisors() local
8625 if (Dividend != FPOne) { in combineRepeatedFPDivisors()
8626 SDValue NewNode = DAG.getNode(ISD::FMUL, SDLoc(U), VT, Dividend, in combineRepeatedFPDivisors()