Home
last modified time | relevance | path

Searched refs:logBase2 (Results 1 – 25 of 35) sorted by relevance

12

/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerCombiner.cpp186 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 DAArch64PostLegalizerLowering.cpp123 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in getExtMask()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp619 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
625 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
H A DSeparateConstOffsetFromGEP.cpp884 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
945 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
H A DLoopIdiomRecognize.cpp2338 (BitPos = ConstantInt::get(CurrX->getType(), Mask.logBase2())); in detectShiftUntilBitTestIdiom()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPInt.h1700 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function
1725 return logBase2(); in exactLogBase2()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp896 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 DSimplifyLibCalls.cpp1964 double N = NI.logBase2() * (IsReciprocal ? -1.0 : 1.0); in replacePowWithExp()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp201 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 DInstCombineAddSub.cpp946 ShAmt = BitWidth - C->logBase2() - 1; in foldAddWithConstant()
948 ShAmt = BitWidth - C2->logBase2() - 1; in foldAddWithConstant()
H A DInstCombineCasts.cpp1060 KnownZeroMask.logBase2() + 1)) { in transformZExtICmp()
1061 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
H A DInstCombineShifts.cpp1335 MulC->logBase2() == ShAmtC) in visitLShr()
H A DInstCombineCompares.cpp1054 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 DInstructionCombining.cpp3292 ConstantInt::get(WO->getLHS()->getType(), C->logBase2())); in foldExtractOfOverflowIntrinsic()
H A DInstCombineCalls.cpp914 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp810 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 DAArch64TargetTransformInfo.cpp1421 Constant *DivisorLog2 = ConstantInt::get(Int32Ty, Divisor.logBase2()); in instCombineSVESDIV()
1428 Constant *DivisorLog2 = ConstantInt::get(Int32Ty, Divisor.logBase2()); in instCombineSVESDIV()
H A DAArch64ISelLowering.cpp10754 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 DAPInt.cpp568 unsigned log = tmp.logBase2(); in getBitsNeeded()
1150 unsigned lg = logBase2(); in nearestLogBase2()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp2254 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 DMipsSEISelLowering.cpp758 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 DConstants.cpp2716 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 DTargetLowering.cpp2668 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 DDAGCombiner.cpp4064 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 DScalarEvolution.cpp1910 MulLHS->getAPInt().logBase2(); in getZeroExtendExprImpl()
3414 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr()

12