Home
last modified time | relevance | path

Searched refs:exactLogBase2 (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/polly/unittests/Isl/
H A DIslTest.cpp256 EXPECT_EQ(500, (-APLargeNPow2).exactLogBase2()); in TEST()
274 EXPECT_EQ(512, (-APLargeNPow2).exactLogBase2()); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp397 IntegerType::get(IntTy->getContext(), (*MinC + 1).exactLogBase2() + 1); in tryToFPToSat()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp637 int32_t Log2 = ImmValue.exactLogBase2(); in selectVSplatUimmPow2()
724 int32_t Log2 = (~ImmValue).exactLogBase2(); in selectVSplatUimmInvPow2()
H A DMipsSEISelLowering.cpp496 int32_t Log2IfPositive = (Mask->getAPIntValue() + 1).exactLogBase2(); in performANDCombine()
/llvm-project-15.0.7/mlir/docs/Tutorials/
H A DQuickstartRewrites.md198 value.exactLogBase2());
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPInt.h1674 int32_t exactLogBase2() const { in exactLogBase2() function
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp1417 EXPECT_EQ(APInt(15, 7).exactLogBase2(), -1); in TEST()
1420 EXPECT_EQ(APInt(15, 8).exactLogBase2(), 3); in TEST()
1423 EXPECT_EQ(APInt(15, 9).exactLogBase2(), -1); in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIVDescriptors.cpp82 int32_t Bits = (*M + 1).exactLogBase2(); in lookThroughAnd()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1470 int32_t logScale = Scale.exactLogBase2(); in Descale()
1570 assert(SmallScale.exactLogBase2() == logScale); in Descale()
1596 assert(Scale.exactLogBase2() == logScale); in Descale()
H A DInstCombineAndOrXor.cpp1934 int Log2ShiftC = ShiftC->exactLogBase2(); in visitAnd()
1935 int Log2C = C->exactLogBase2(); in visitAnd()
H A DInstCombineCalls.cpp666 Op0, ConstantInt::get(Ty, (~Known.Zero).exactLogBase2())); in foldCtpop()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp5111 BW = MinCPlus1.exactLogBase2() + 1; in isSaturatingMinMax()
5117 BW = MinCPlus1.exactLogBase2(); in isSaturatingMinMax()
5168 unsigned BW = (C1 + 1).exactLogBase2(); in PerformUMinFpToSatCombine()
10214 DAG.getShiftAmountConstant(C1Val.exactLogBase2(), VT, DL); in foldSelectOfConstants()
10828 SDValue ShAmtC = DAG.getConstant(Pow2C.exactLogBase2(), DL, VT); in foldVSelectOfConstants()
H A DTargetLowering.cpp1944 int Log2 = DemandedBits.exactLogBase2(); in SimplifyDemandedBits()
H A DSelectionDAG.cpp11589 return IntVal.exactLogBase2(); in getConstantFPSplatPow2ToLog2Int()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp1607 ShiftVal = MaybeImmVal->Value.exactLogBase2(); in matchCombineMulToShl()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp1554 int32_t Bit = MaybeBit->Value.exactLogBase2(); in tryOptAndIntoCompareBranch()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp45018 MaskVal->getAPIntValue().exactLogBase2()); in combineSelect()