| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerCombiner.cpp | 186 ShiftAmt = SCVMinus1.logBase2(); in matchAArch64MulConstCombine() 189 ShiftAmt = CVPlus1.logBase2(); in matchAArch64MulConstCombine() 199 ShiftAmt = CVNegPlus1.logBase2(); in matchAArch64MulConstCombine() 203 ShiftAmt = CVNegMinus1.logBase2(); in matchAArch64MulConstCombine()
|
| H A D | AArch64PostLegalizerLowering.cpp | 123 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in getExtMask()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 619 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() 625 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
|
| H A D | SeparateConstOffsetFromGEP.cpp | 884 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 945 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
|
| H A D | LoopIdiomRecognize.cpp | 2338 (BitPos = ConstantInt::get(CurrX->getType(), Mask.logBase2())); in detectShiftUntilBitTestIdiom()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1700 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function 1725 return logBase2(); in exactLogBase2()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 896 if (RHS->logBase2() == RHS->getBitWidth() - 1) in visitMulExpr() 899 ConstantInt::get(Ty, RHS->logBase2()), NWFlags, in visitMulExpr() 919 ConstantInt::get(Ty, RHS.logBase2()), in visitUDivExpr()
|
| H A D | SimplifyLibCalls.cpp | 1964 double N = NI.logBase2() * (IsReciprocal ? -1.0 : 1.0); in replacePowWithExp()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 201 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd() 202 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd() 649 C1Log = C1->logBase2(); in foldSelectICmpAndOr() 680 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
|
| H A D | InstCombineAddSub.cpp | 946 ShAmt = BitWidth - C->logBase2() - 1; in foldAddWithConstant() 948 ShAmt = BitWidth - C2->logBase2() - 1; in foldAddWithConstant()
|
| H A D | InstCombineCasts.cpp | 1060 KnownZeroMask.logBase2() + 1)) { in transformZExtICmp() 1061 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
|
| H A D | InstCombineShifts.cpp | 1335 MulC->logBase2() == ShAmtC) in visitLShr()
|
| H A D | InstCombineCompares.cpp | 1054 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst() 1459 return new ICmpInst(Pred, Y, ConstantInt::get(SrcTy, C.logBase2())); in foldICmpTruncConstant() 2045 unsigned CLog2 = C.logBase2(); in foldICmpShlOne() 5174 unsigned MaskWidth = CVal.logBase2(); in processUMulZExtIdiom()
|
| H A D | InstructionCombining.cpp | 3292 ConstantInt::get(WO->getLHS()->getType(), C->logBase2())); in foldExtractOfOverflowIntrinsic()
|
| H A D | InstCombineCalls.cpp | 914 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64FastISel.cpp | 810 unsigned Val = C->getValue().logBase2(); in computeAddress() 1258 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub() 1627 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp() 2320 TestBit = C->getValue().logBase2(); in emitCompareAndBranch() 4621 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
|
| H A D | AArch64TargetTransformInfo.cpp | 1421 Constant *DivisorLog2 = ConstantInt::get(Int32Ty, Divisor.logBase2()); in instCombineSVESDIV() 1428 Constant *DivisorLog2 = ConstantInt::get(Int32Ty, Divisor.logBase2()); in instCombineSVESDIV()
|
| H A D | AArch64ISelLowering.cpp | 10754 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in isEXTMask() 15685 ShiftAmt = SCVMinus1.logBase2(); in performMulCombine() 15688 ShiftAmt = CVPlus1.logBase2(); in performMulCombine() 15691 ShiftAmt = SCVPlus1.logBase2() + TrailingZeroes; in performMulCombine() 15697 unsigned ShiftM1 = CVMMinus1.logBase2(); in performMulCombine() 15698 unsigned ShiftN1 = CVNMinus1.logBase2(); in performMulCombine() 15713 ShiftAmt = CVNegPlus1.logBase2(); in performMulCombine() 15716 ShiftAmt = CVNegMinus1.logBase2(); in performMulCombine() 15719 ShiftAmt = SCVPlus1.logBase2() + TrailingZeroes; in performMulCombine()
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | APInt.cpp | 568 unsigned log = tmp.logBase2(); in getBitsNeeded() 1150 unsigned lg = logBase2(); in nearestLogBase2()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelDAGToDAG.cpp | 2254 V1C->getAPIntValue().logBase2(), SDLoc(N), in balanceSubTree() 2284 V1C->getAPIntValue().logBase2(), SDLoc(NewRoot), in balanceSubTree()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | MipsSEISelLowering.cpp | 758 APInt Floor = APInt(BitWidth, 1) << Val.logBase2(); in shouldTransformMulToShiftsAddsSubs() 799 DAG.getConstant(C.logBase2(), DL, ShiftTy)); in genConstMult() 802 APInt Floor = APInt(BitWidth, 1) << C.logBase2(); in genConstMult()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Constants.cpp | 2716 return ConstantInt::get(Ty, IVal->logBase2()); in getExactLogBase2() 2735 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getExactLogBase2()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 2668 return (-UnmaskedC).logBase2(); in SimplifyDemandedBits() 3883 const unsigned KeptBits = I1.logBase2(); in optimizeSetCCOfSignedTruncationCheck() 3884 const unsigned KeptBitsMinusOne = I01.logBase2(); in optimizeSetCCOfSignedTruncationCheck() 4845 unsigned ShCt = AndRHS->getAPIntValue().logBase2(); in SimplifySetCC() 4855 unsigned ShCt = C1.logBase2(); in SimplifySetCC() 9983 SDValue ShiftAmt = DAG.getConstant(C.logBase2(), dl, ShiftAmtTy); in expandMULO()
|
| H A D | DAGCombiner.cpp | 4064 unsigned Log2Val = (-ConstValue1).logBase2(); in visitMUL() 4120 MathOp == ISD::ADD ? (MulC - 1).logBase2() : (MulC + 1).logBase2(); in visitMUL() 16725 cast<ConstantSDNode>(Op1)->getAPIntValue() == AndConst.logBase2()) { in rebuildSetCC() 25364 unsigned ShCt = XType.getSizeInBits() - N2C->getAPIntValue().logBase2() - 1; in foldSelectCCToShiftAnd() 25652 unsigned ShCt = N2C->getAPIntValue().logBase2(); in SimplifySelectCC()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 1910 MulLHS->getAPInt().logBase2(); in getZeroExtendExprImpl() 3414 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr()
|