/external/llvm/lib/Transforms/Utils/ |
BypassSlowDivision.cpp | 32 Value *Divisor; 35 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} 53 Val1.Divisor == Val2.Divisor; 66 reinterpret_cast<uintptr_t>(Val.Divisor)) ^ 87 Value *Divisor = Instr->getOperand(1); 89 if (isa<ConstantInt>(Divisor) || 90 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) { 109 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor); 110 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor); [all...] |
IntegerDivision.cpp | 34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, 50 // ; %divisor_sgn = ashr i32 %divisor, 31 52 // ; %dvs_xor = xor i32 %divisor, %divisor_sgn 55 // ; %urem = urem i32 %dividend, %divisor 59 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); 61 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); 80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, 82 // Remainder = Dividend - Quotient*Divisor 86 // ; %quotient = udiv i32 %dividend, %divisor 87 // ; %product = mul i32 %divisor, %quotien [all...] |
/external/llvm/lib/Support/ |
ScaledNumber.cpp | 58 uint32_t Divisor) { 60 assert(Divisor && "expected non-zero divisor"); 69 uint64_t Quotient = Dividend64 / Divisor; 70 uint64_t Remainder = Dividend64 % Divisor; 77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); 81 uint64_t Divisor) { 83 assert(Divisor && "expected non-zero divisor"); 85 // Minimize size of divisor [all...] |
/external/clang/test/SemaTemplate/ |
instantiate-static-var.cpp | 2 template<typename T, T Divisor> 5 static const T value = 10 / Divisor; // expected-error{{in-class initializer for static data member is not a constant expression}}
|
/external/llvm/lib/CodeGen/ |
TargetSchedule.cpp | 39 static unsigned gcd(unsigned Dividend, unsigned Divisor) { 40 // Dividend and Divisor will be naturally swapped as needed. 41 while(Divisor) { 42 unsigned Rem = Dividend % Divisor; 43 Dividend = Divisor; 44 Divisor = Rem;
|
/external/llvm/include/llvm/Support/ |
ScaledNumber.h | 139 /// \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) { 163 if (!Divisor) 167 return divide64(Dividend, Divisor); 168 return divide32(Dividend, Divisor); 173 uint32_t Divisor) { 174 return getQuotient(Dividend, Divisor); [all...] |
/external/llvm/lib/IR/ |
GCOV.cpp | 388 static uint32_t safeDiv(uint64_t Numerator, uint64_t Divisor) { 391 return Numerator/Divisor; 397 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { 400 if (Numerator == Divisor) 403 uint8_t Res = (Numerator*100+Divisor/2) / Divisor;
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
TargetLowering.cpp | [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineMulDivRem.cpp | [all...] |
/external/llvm/include/llvm/Target/ |
TargetLowering.h | [all...] |
/external/llvm/lib/Target/Mips/ |
MipsISelLowering.cpp | [all...] |
/external/llvm/lib/Analysis/ |
DependenceAnalysis.cpp | [all...] |