Home
last modified time | relevance | path

Searched refs:logBase2 (Results 1 – 14 of 14) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp123 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()
DInstCombineAddSub.cpp123 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
125 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
DInstCombineSelect.cpp629 unsigned ValZeros = ValC->getValue().logBase2(); in foldSelectICmpAnd()
630 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
DInstCombineCasts.cpp560 uint32_t ShiftAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
/external/llvm/include/llvm/ADT/
DAPInt.h1369 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/
DAPIntTest.cpp403 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/
DDAGCombiner.cpp1766 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()
DTargetLowering.cpp2334 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), ShiftTy))); in SimplifySetCC()
2342 DAG.getConstant(C1.logBase2(), ShiftTy))); in SimplifySetCC()
DSelectionDAGBuilder.cpp2196 double Metric = Range.logBase2()*(LDensity+RDensity); in handleBTSplitSwitchCase()
3127 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp831 ConstantInt::get(Ty, RHS.logBase2())); in visitUDivExpr()
/external/llvm/lib/Support/
DAPInt.cpp655 unsigned log = tmp.logBase2(); in getBitsNeeded()
/external/llvm/lib/Target/CellSPU/
DSPUISelLowering.cpp2102 unsigned scaleShift = scaleFactor.logBase2(); in LowerEXTRACT_VECTOR_ELT()
/external/clang/lib/Sema/
DSemaChecking.cpp3692 unsigned log2 = divisor.logBase2(); // floor(log_2(divisor)) in GetExprRange()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp13462 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in PerformSELECTCombine()
13626 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in PerformCMOVCombine()