/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerCombiner.cpp | 198 ShiftAmt = SCVMinus1.logBase2(); in matchAArch64MulConstCombine() 201 ShiftAmt = CVPlus1.logBase2(); in matchAArch64MulConstCombine() 211 ShiftAmt = CVNegPlus1.logBase2(); in matchAArch64MulConstCombine() 215 ShiftAmt = CVNegMinus1.logBase2(); in matchAArch64MulConstCombine()
|
H A D | AArch64PostLegalizerLowering.cpp | 92 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in getExtMask()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 598 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() 604 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
|
H A D | SeparateConstOffsetFromGEP.cpp | 892 Idx, ConstantInt::get(PtrIndexTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 952 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
|
H A D | LoopIdiomRecognize.cpp | 2472 (BitPos = ConstantInt::get(CurrX->getType(), Mask.logBase2())); in detectShiftUntilBitTestIdiom()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 1719 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function 1744 return logBase2(); in exactLogBase2()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineShifts.cpp | 1494 MulC->logBase2() == ShAmtC) { in visitLShr() 1533 MulC->logBase2() == ShAmtC) { in visitLShr() 1747 MulC->logBase2() == ShAmt && in visitAShr()
|
H A D | InstCombineSelect.cpp | 203 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd() 204 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd() 750 C1Log = C1->logBase2(); in foldSelectICmpAndBinOp() 757 C1Log = C1.logBase2(); in foldSelectICmpAndBinOp() 784 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndBinOp()
|
H A D | InstCombineAddSub.cpp | 965 ShAmt = BitWidth - C->logBase2() - 1; in foldAddWithConstant() 967 ShAmt = BitWidth - C2->logBase2() - 1; in foldAddWithConstant()
|
H A D | InstCombineCompares.cpp | 990 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst() 1449 return new ICmpInst(Pred, Y, ConstantInt::get(SrcTy, C.logBase2())); in foldICmpTruncConstant() 2253 unsigned CLog2 = C.logBase2(); in foldICmpShlOne()
|
H A D | InstCombineCasts.cpp | 961 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
|
H A D | InstructionCombining.cpp | 3890 ConstantInt::get(WO->getLHS()->getType(), C->logBase2())); in foldExtractOfOverflowIntrinsic()
|
H A D | InstCombineCalls.cpp | 1147 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 642 if (RHS->logBase2() == RHS->getBitWidth() - 1) in visitMulExpr() 645 ConstantInt::get(Ty, RHS->logBase2()), NWFlags, in visitMulExpr() 663 ConstantInt::get(SC->getType(), RHS.logBase2()), in visitUDivExpr()
|
H A D | SimplifyLibCalls.cpp | 2156 double N = NI.logBase2() * (IsReciprocal ? -1.0 : 1.0); in replacePowWithExp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64FastISel.cpp | 814 unsigned Val = C->getValue().logBase2(); in computeAddress() 1253 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub() 1622 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp() 2315 TestBit = C->getValue().logBase2(); in emitCompareAndBranch() 4671 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
|
H A D | AArch64TargetTransformInfo.cpp | 1901 Constant *DivisorLog2 = ConstantInt::get(Int32Ty, Divisor.logBase2()); in instCombineSVESDIV() 1908 Constant *DivisorLog2 = ConstantInt::get(Int32Ty, Divisor.logBase2()); in instCombineSVESDIV()
|
H A D | AArch64ISelLowering.cpp | 12506 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in isEXTMask() 18390 M = APInt(BitWidth, SCVMinus1.logBase2()); in performMulCombine() 18407 M = APInt(BitWidth, CVPlus1.logBase2()); in performMulCombine() 18429 ShiftAmt = SCVMinus1.logBase2(); in performMulCombine() 18432 ShiftAmt = CVPlus1.logBase2(); in performMulCombine() 18435 ShiftAmt = SCVPlus1.logBase2() + TrailingZeroes; in performMulCombine() 18442 unsigned ShiftM1 = CVMMinus1.logBase2(); in performMulCombine() 18443 unsigned ShiftN1 = CVNMinus1.logBase2(); in performMulCombine() 18479 ShiftAmt = CVNegPlus1.logBase2(); in performMulCombine() 18482 ShiftAmt = CVNegMinus1.logBase2(); in performMulCombine() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 576 unsigned log = tmp.logBase2(); in getBitsNeeded() 1158 unsigned lg = logBase2(); in nearestLogBase2()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAG.cpp | 2347 V1C->getAPIntValue().logBase2(), SDLoc(N), in balanceSubTree() 2377 V1C->getAPIntValue().logBase2(), SDLoc(NewRoot), in balanceSubTree()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsSEISelLowering.cpp | 764 APInt Floor = APInt(BitWidth, 1) << Val.logBase2(); in shouldTransformMulToShiftsAddsSubs() 805 DAG.getConstant(C.logBase2(), DL, ShiftTy)); in genConstMult() 808 APInt Floor = APInt(BitWidth, 1) << C.logBase2(); in genConstMult()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 2628 return ConstantInt::get(Ty, IVal->logBase2()); in getExactLogBase2() 2647 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getExactLogBase2()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 2888 return (-UnmaskedC).logBase2(); in SimplifyDemandedBits() 4140 const unsigned KeptBits = I1.logBase2(); in optimizeSetCCOfSignedTruncationCheck() 4141 const unsigned KeptBitsMinusOne = I01.logBase2(); in optimizeSetCCOfSignedTruncationCheck() 5118 unsigned ShCt = AndRHS->getAPIntValue().logBase2(); in SimplifySetCC() 5129 unsigned ShCt = C1.logBase2(); in SimplifySetCC() 10973 SDValue ShiftAmt = DAG.getShiftAmountConstant(C.logBase2(), VT, dl); in expandMULO()
|
H A D | DAGCombiner.cpp | 4381 unsigned Log2Val = (-ConstValue1).logBase2(); in visitMUL() 4440 MathOp == ISD::ADD ? (MulC - 1).logBase2() : (MulC + 1).logBase2(); in visitMUL() 18311 Op1->getAsAPIntVal() == AndConst.logBase2()) { in rebuildSetCC() 27469 unsigned ShCt = XType.getSizeInBits() - N2C->getAPIntValue().logBase2() - 1; in foldSelectCCToShiftAnd() 27754 unsigned ShCt = N2C->getAPIntValue().logBase2(); in SimplifySelectCC() 27961 return DAG.getConstant(Pow2Constants.back().logBase2(), DL, VT); in takeInexpensiveLog2() 27965 DAG.getConstant(Pow2Constants.back().logBase2(), DL, in takeInexpensiveLog2() 27970 DAG.getConstant(Pow2.logBase2(), DL, VT.getScalarType())); in takeInexpensiveLog2()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelDAGToDAG.cpp | 3241 unsigned FracBits = Converted.logBase2(); in transformFixedFloatingPointConversion()
|