Searched refs:Dividend (Results 1 - 8 of 8) sorted by relevance

/external/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp31 Value *Dividend; member in struct:__anon26346::DivOpInfo
35 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {}
52 Val1.Dividend == Val2.Dividend &&
65 return (unsigned)(reinterpret_cast<uintptr_t>(Val.Dividend) ^
86 Value *Dividend = Instr->getOperand(0); local
90 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) {
109 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor);
110 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor);
112 SlowQuotientV = SlowBuilder.CreateUDiv(Dividend, Diviso
[all...]
H A DIntegerDivision.cpp34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, argument
36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth();
58 Value *DividendSign = Builder.CreateAShr(Dividend, Shift);
60 Value *DvdXor = Builder.CreateXor(Dividend, DividendSign);
80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, argument
82 // Remainder = Dividend - Quotient*Divisor
89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor);
91 Value *Remainder = Builder.CreateSub(Dividend, Product);
104 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, argument
108 unsigned BitWidth = Dividend
151 generateUnsignedDivisionCode(Value *Dividend, Value *Divisor, IRBuilder<> &Builder) argument
[all...]
/external/llvm/lib/Support/
H A DScaledNumber.cpp57 std::pair<uint32_t, int16_t> ScaledNumbers::divide32(uint32_t Dividend, argument
59 assert(Dividend && "expected non-zero dividend");
63 uint64_t Dividend64 = Dividend;
80 std::pair<uint64_t, int16_t> ScaledNumbers::divide64(uint64_t Dividend, argument
82 assert(Dividend && "expected non-zero dividend");
94 return std::make_pair(Dividend, Shift);
97 if (int Zeros = countLeadingZeros(Dividend)) {
99 Dividend <<= Zeros;
103 uint64_t Quotient = Dividend / Divisor;
104 Dividend
[all...]
/external/llvm/lib/CodeGen/
H A DTargetSchedule.cpp39 static unsigned gcd(unsigned Dividend, unsigned Divisor) { argument
40 // Dividend and Divisor will be naturally swapped as needed.
42 unsigned Rem = Dividend % Divisor;
43 Dividend = Divisor;
46 return Dividend;
/external/llvm/include/llvm/Support/
H A DScaledNumber.h139 /// \pre \c Dividend and \c Divisor are non-zero.
140 std::pair<uint64_t, int16_t> divide64(uint64_t Dividend, uint64_t Divisor);
146 /// \pre \c Dividend and \c Divisor are non-zero.
147 std::pair<uint32_t, int16_t> divide32(uint32_t Dividend, uint32_t Divisor);
155 std::pair<DigitsT, int16_t> getQuotient(DigitsT Dividend, DigitsT Divisor) { argument
161 if (!Dividend)
167 return divide64(Dividend, Divisor);
168 return divide32(Dividend, Divisor);
172 inline std::pair<uint32_t, int16_t> getQuotient32(uint32_t Dividend, argument
174 return getQuotient(Dividend, Diviso
178 getQuotient64(uint64_t Dividend, uint64_t Divisor) argument
692 getQuotient(DigitsType Dividend, DigitsType Divisor) argument
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1037 static Instruction *CvtFDivConstToReciprocal(Value *Dividend, argument
1057 R = ConstantFP::get(Dividend->getType()->getContext(), Reciprocal);
1058 return BinaryOperator::CreateFMul(Dividend, R);
/external/llvm/lib/Analysis/
H A DDependenceAnalysis.cpp1542 bool isRemainderZero(const SCEVConstant *Dividend, argument
1544 APInt ConstDividend = Dividend->getValue()->getValue();
H A DScalarEvolution.cpp776 const SCEV *Dividend = SE.getTruncateOrZeroExtend(It, CalculationTy); local
779 Dividend = SE.getMulExpr(Dividend,
784 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor));

Completed in 1836 milliseconds