Home
last modified time | relevance | path

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

1234

/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64PostLegalizerCombiner.cpp180 ShiftAmt = SCVMinus1.logBase2(); in matchAArch64MulConstCombine()
183 ShiftAmt = CVPlus1.logBase2(); in matchAArch64MulConstCombine()
193 ShiftAmt = CVNegPlus1.logBase2(); in matchAArch64MulConstCombine()
197 ShiftAmt = CVNegMinus1.logBase2(); in matchAArch64MulConstCombine()
DAArch64PostLegalizerLowering.cpp113 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in getExtMask()
/external/freetype/src/psaux/
Dpsfont.c110 FT_Int logBase2; in cf2_computeDarkening() local
155 logBase2 = FT_MSB( (FT_UInt32)stemWidthPer1000 ) + in cf2_computeDarkening()
158 if ( logBase2 >= 46 ) in cf2_computeDarkening()
/external/llvm/include/llvm/ADT/
DAPInt.h1531 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2() function
1563 unsigned lg = logBase2(); in nearestLogBase2()
1572 return logBase2(); in exactLogBase2()
1807 inline unsigned logBase2(const APInt &APIVal) { return APIVal.logBase2(); } in logBase2() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1507 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2() function
1541 unsigned lg = logBase2(); in nearestLogBase2()
1550 return logBase2(); in exactLogBase2()
1834 inline unsigned logBase2(const APInt &APIVal) { return APIVal.logBase2(); } in logBase2() function
/external/llvm/unittests/ADT/
DAPIntTest.cpp743 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST()
746 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST()
749 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST()
949 EXPECT_EQ(A2.nearestLogBase2(), A2.logBase2()); in TEST()
966 EXPECT_EQ(A5.nearestLogBase2(), A5.logBase2()); in TEST()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp339 unsigned C1Log = C1->logBase2(); in foldSelectICmpAndOr()
340 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
812 unsigned ValZeros = ValC->getValue().logBase2(); in foldSelectICmpAnd()
813 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd()
DInstCombineMulDivRem.cpp127 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2())); in getLogBase2Vector()
220 NewCst = ConstantInt::get(NewOp->getType(), IVal->logBase2()); in visitMul()
978 Op0, ConstantInt::get(Op0->getType(), C.logBase2())); in foldUDivPow2Cst()
1004 N = IC.Builder->CreateAdd(N, ConstantInt::get(N->getType(), CI.logBase2())); in foldUDivShl()
DInstCombineAddSub.cpp1070 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
1072 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
DInstCombineCompares.cpp1466 ConstantInt::get(A->getType(), AP2.logBase2())); in FoldICmpCstShrCst()
1941 unsigned RHSLog2 = RHSV.logBase2(); in visitICmpInstWithInstAndIntCst()
1981 Pred, X, ConstantInt::get(RHS->getType(), RHSV.logBase2())); in visitICmpInstWithInstAndIntCst()
2771 unsigned MaskWidth = CVal.logBase2(); in ProcessUMulZExtIdiom()
4203 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth()) in visitICmpInst()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp575 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
581 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
DSeparateConstOffsetFromGEP.cpp803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
864 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp609 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
615 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
DSeparateConstOffsetFromGEP.cpp849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp622 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
628 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
DSeparateConstOffsetFromGEP.cpp881 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
942 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
/external/llvm-project/llvm/include/llvm/ADT/
DAPInt.h1816 unsigned logBase2() const { return getActiveBits() - 1; }
1850 unsigned lg = logBase2();
1859 return logBase2();
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPInt.h1805 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function
1839 unsigned lg = logBase2(); in nearestLogBase2()
1848 return logBase2(); in exactLogBase2()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp204 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd()
205 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd()
612 C1Log = C1->logBase2(); in foldSelectICmpAndOr()
643 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
2175 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
DInstCombineMulDivRem.cpp105 return ConstantInt::get(Ty, IVal->logBase2()); in getLogBase2()
121 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getLogBase2()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp205 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd()
206 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd()
592 C1Log = C1->logBase2(); in foldSelectICmpAndOr()
623 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
2220 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
/external/llvm-project/llvm/unittests/ADT/
DAPIntTest.cpp1411 EXPECT_EQ(APInt(15, 7).logBase2(), 2U); in TEST()
1414 EXPECT_EQ(APInt(15, 8).logBase2(), 3U); in TEST()
1417 EXPECT_EQ(APInt(15, 9).logBase2(), 3U); in TEST()
1667 EXPECT_EQ(A2.nearestLogBase2(), A2.logBase2()); in TEST()
1684 EXPECT_EQ(A5.nearestLogBase2(), A5.logBase2()); in TEST()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp840 if (RHS->logBase2() == RHS->getBitWidth() - 1) in visitMulExpr()
843 ConstantInt::get(Ty, RHS->logBase2()), NWFlags, in visitMulExpr()
863 ConstantInt::get(Ty, RHS.logBase2()), in visitUDivExpr()
/external/llvm-project/llvm/lib/Transforms/Utils/
DScalarEvolutionExpander.cpp867 if (RHS->logBase2() == RHS->getBitWidth() - 1) in visitMulExpr()
870 ConstantInt::get(Ty, RHS->logBase2()), NWFlags, in visitMulExpr()
890 ConstantInt::get(Ty, RHS.logBase2()), in visitUDivExpr()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp729 unsigned Val = C->getValue().logBase2(); in computeAddress()
1183 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub()
1561 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp()
2218 TestBit = C->getValue().logBase2(); in emitCompareAndBranch()
4523 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()

1234