Searched refs:exactLogBase2 (Results 1 – 17 of 17) sorted by relevance
| /llvm-project-15.0.7/polly/unittests/Isl/ |
| H A D | IslTest.cpp | 256 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 D | AggressiveInstCombine.cpp | 397 IntegerType::get(IntTy->getContext(), (*MinC + 1).exactLogBase2() + 1); in tryToFPToSat()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsSEISelDAGToDAG.cpp | 637 int32_t Log2 = ImmValue.exactLogBase2(); in selectVSplatUimmPow2() 724 int32_t Log2 = (~ImmValue).exactLogBase2(); in selectVSplatUimmInvPow2()
|
| H A D | MipsSEISelLowering.cpp | 496 int32_t Log2IfPositive = (Mask->getAPIntValue() + 1).exactLogBase2(); in performANDCombine()
|
| /llvm-project-15.0.7/mlir/docs/Tutorials/ |
| H A D | QuickstartRewrites.md | 198 value.exactLogBase2());
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1674 int32_t exactLogBase2() const { in exactLogBase2() function
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 1417 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 D | IVDescriptors.cpp | 82 int32_t Bits = (*M + 1).exactLogBase2(); in lookThroughAnd()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 1470 int32_t logScale = Scale.exactLogBase2(); in Descale() 1570 assert(SmallScale.exactLogBase2() == logScale); in Descale() 1596 assert(Scale.exactLogBase2() == logScale); in Descale()
|
| H A D | InstCombineAndOrXor.cpp | 1934 int Log2ShiftC = ShiftC->exactLogBase2(); in visitAnd() 1935 int Log2C = C->exactLogBase2(); in visitAnd()
|
| H A D | InstCombineCalls.cpp | 666 Op0, ConstantInt::get(Ty, (~Known.Zero).exactLogBase2())); in foldCtpop()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 5111 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 D | TargetLowering.cpp | 1944 int Log2 = DemandedBits.exactLogBase2(); in SimplifyDemandedBits()
|
| H A D | SelectionDAG.cpp | 11589 return IntVal.exactLogBase2(); in getConstantFPSplatPow2ToLog2Int()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 1607 ShiftVal = MaybeImmVal->Value.exactLogBase2(); in matchCombineMulToShl()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64InstructionSelector.cpp | 1554 int32_t Bit = MaybeBit->Value.exactLogBase2(); in tryOptAndIntoCompareBranch()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 45018 MaskVal->getAPIntValue().exactLogBase2()); in combineSelect()
|