Home
last modified time | relevance | path

Searched refs:ceilLogBase2 (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp1416 EXPECT_EQ(APInt(15, 7).ceilLogBase2(), 3U); in TEST()
1419 EXPECT_EQ(APInt(15, 8).ceilLogBase2(), 3U); in TEST()
1422 EXPECT_EQ(APInt(15, 9).ceilLogBase2(), 4U); in TEST()
1648 EXPECT_EQ(A1.nearestLogBase2(), A1.ceilLogBase2()); in TEST()
1658 EXPECT_EQ(A3.nearestLogBase2(), A3.ceilLogBase2()); in TEST()
1665 EXPECT_EQ(A4.nearestLogBase2(), A4.ceilLogBase2()); in TEST()
1675 EXPECT_EQ(A6.nearestLogBase2(), A6.ceilLogBase2()); in TEST()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DIslExprBuilder.cpp425 Res = Builder.CreateAShr(LHS, Val.ceilLogBase2(), "polly.fdiv_q.shr"); in createOpBin()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPInt.h1655 unsigned ceilLogBase2() const { in ceilLogBase2() function
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp853 APInt(32, Switch->getNumSuccessors()).ceilLogBase2(); in isLegalAndProfitableToTransform()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp760 : APInt(BitWidth, 1) << C.ceilLogBase2(); in shouldTransformMulToShiftsAddsSubs()
804 APInt(BitWidth, 1) << C.ceilLogBase2(); in genConstMult()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp3154 unsigned ResBits = TyBits - Denominator->ceilLogBase2(); in ComputeNumSignBitsImpl()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp5557 if (Op0Known.countMinTrailingZeros() >= CmpC->ceilLogBase2()) in foldICmpUsingKnownBits()