Searched refs:logBase2 (Results 1 – 14 of 14) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 123 Constant *NewCst = ConstantInt::get(Op0->getType(), Val.logBase2()); in visitMul() 450 C->logBase2())); in visitUDiv() 469 N = Builder->CreateAdd(N, ConstantInt::get(I.getType(),CI->logBase2())); in visitUDiv() 481 Value *TSI = Builder->CreateLShr(Op0, C1->logBase2(), Op1->getName()+".t", in visitUDiv() 485 Value *FSI = Builder->CreateLShr(Op0, C2->logBase2(), Op1->getName()+".f", in visitUDiv()
|
D | InstCombineAddSub.cpp | 123 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd() 125 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
|
D | InstCombineSelect.cpp | 629 unsigned ValZeros = ValC->getValue().logBase2(); in foldSelectICmpAnd() 630 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
|
D | InstCombineCasts.cpp | 560 uint32_t ShiftAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1369 unsigned logBase2() const { in logBase2() function 1383 return logBase2(); in exactLogBase2() 1623 inline unsigned logBase2(const APInt& APIVal) { in logBase2() function 1624 return APIVal.logBase2(); in logBase2()
|
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 403 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST() 406 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST() 409 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 1766 DAG.getConstant(N1C->getAPIntValue().logBase2(), in visitMUL() 1770 unsigned Log2Val = (-N1C->getAPIntValue()).logBase2(); in visitMUL() 1931 DAG.getConstant(N1C->getAPIntValue().logBase2(), in visitUDIV() 1941 .logBase2(), in visitUDIV() 6169 cast<ConstantSDNode>(Op1)->getAPIntValue()==AndConst.logBase2()) { in visitBRCOND() 8303 unsigned ShCtV = N2C->getAPIntValue().logBase2(); in SimplifySelectCC() 8402 DAG.getConstant(N2C->getAPIntValue().logBase2(), in SimplifySelectCC()
|
D | TargetLowering.cpp | 2334 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), ShiftTy))); in SimplifySetCC() 2342 DAG.getConstant(C1.logBase2(), ShiftTy))); in SimplifySetCC()
|
D | SelectionDAGBuilder.cpp | 2196 double Metric = Range.logBase2()*(LDensity+RDensity); in handleBTSplitSwitchCase() 3127 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 831 ConstantInt::get(Ty, RHS.logBase2())); in visitUDivExpr()
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 655 unsigned log = tmp.logBase2(); in getBitsNeeded()
|
/external/llvm/lib/Target/CellSPU/ |
D | SPUISelLowering.cpp | 2102 unsigned scaleShift = scaleFactor.logBase2(); in LowerEXTRACT_VECTOR_ELT()
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 3692 unsigned log2 = divisor.logBase2(); // floor(log_2(divisor)) in GetExprRange()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 13462 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in PerformSELECTCombine() 13626 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in PerformCMOVCombine()
|