Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDStraightLineStrengthReduce.cpp609 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
615 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
HDSeparateConstOffsetFromGEP.cpp849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
HDAPInt.h1805 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2() function
1839 unsigned lg = logBase2(); in nearestLogBase2()
1848 return logBase2(); in exactLogBase2()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
HDInstCombineSelect.cpp204 unsigned ValZeros = ValC.logBase2(); in foldSelectICmpAnd()
205 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd()
612 C1Log = C1->logBase2(); in foldSelectICmpAndOr()
643 unsigned C2Log = C2->logBase2(); in foldSelectICmpAndOr()
2175 unsigned NewBitWidth = (*MaxValue + 1).logBase2() + 1; in matchSAddSubSat()
HDInstCombineMulDivRem.cpp105 return ConstantInt::get(Ty, IVal->logBase2()); in getLogBase2()
121 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getLogBase2()
HDInstCombineAddSub.cpp1241 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
1243 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
HDInstCombineCompares.cpp1180 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst()
1986 unsigned CLog2 = C.logBase2(); in foldICmpShlOne()
2016 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, C.logBase2())); in foldICmpShlOne()
4238 Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth()) in foldICmpEquality()
4653 unsigned MaskWidth = CVal.logBase2(); in processUMulZExtIdiom()
HDInstCombineCasts.cpp902 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
HDScalarEvolutionExpander.cpp840 if (RHS->logBase2() == RHS->getBitWidth() - 1) in visitMulExpr()
843 ConstantInt::get(Ty, RHS->logBase2()), NWFlags, in visitMulExpr()
863 ConstantInt::get(Ty, RHS.logBase2()), in visitUDivExpr()
HDValueTracking.cpp2513 return std::min(TyBits, NumBits + Denominator->logBase2()); in ComputeNumSignBitsImpl()
HDScalarEvolution.cpp1930 MulLHS->getAPInt().logBase2(); in getZeroExtendExpr()
3181 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
HDAArch64FastISel.cpp803 unsigned Val = C->getValue().logBase2(); in computeAddress()
1262 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitAddSub()
1648 uint64_t ShiftVal = cast<ConstantInt>(MulRHS)->getValue().logBase2(); in emitLogicalOp()
2349 TestBit = C->getValue().logBase2(); in emitCompareAndBranch()
4702 uint64_t ShiftVal = C->getValue().logBase2(); in selectMul()
HDAArch64ISelLowering.cpp6786 unsigned MaskBits = APInt(32, NumElts * 2).logBase2(); in isEXTMask()
9811 ShiftAmt = SCVMinus1.logBase2(); in performMulCombine()
9814 ShiftAmt = CVPlus1.logBase2(); in performMulCombine()
9824 ShiftAmt = CVNegPlus1.logBase2(); in performMulCombine()
9828 ShiftAmt = CVNegMinus1.logBase2(); in performMulCombine()
HDAArch64ISelDAGToDAG.cpp2694 unsigned FBits = IntVal.logBase2(); in SelectCVTFixedPosOperand()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
HDHexagonISelDAGToDAG.cpp2190 V1C->getAPIntValue().logBase2(), SDLoc(N), in balanceSubTree()
2220 V1C->getAPIntValue().logBase2(), SDLoc(NewRoot), in balanceSubTree()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
HDMipsSEISelLowering.cpp765 APInt Floor = APInt(BitWidth, 1) << Val.logBase2(); in shouldTransformMulToShiftsAddsSubs()
806 DAG.getConstant(C.logBase2(), DL, ShiftTy)); in genConstMult()
809 APInt Floor = APInt(BitWidth, 1) << C.logBase2(); in genConstMult()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
HDTargetLowering.cpp2975 const unsigned KeptBits = I1.logBase2(); in optimizeSetCCOfSignedTruncationCheck()
2976 const unsigned KeptBitsMinusOne = I01.logBase2(); in optimizeSetCCOfSignedTruncationCheck()
3693 unsigned ShCt = AndRHS->getAPIntValue().logBase2(); in SimplifySetCC()
3703 unsigned ShCt = C1.logBase2(); in SimplifySetCC()
7482 SDValue ShiftAmt = DAG.getConstant(C.logBase2(), dl, ShiftAmtTy); in expandMULO()
HDDAGCombiner.cpp3513 unsigned Log2Val = (-ConstValue1).logBase2(); in visitMUL()
3544 MathOp == ISD::ADD ? (MulC - 1).logBase2() : (MulC + 1).logBase2(); in visitMUL()
13592 cast<ConstantSDNode>(Op1)->getAPIntValue() == AndConst.logBase2()) { in rebuildSetCC()
20268 unsigned ShCt = XType.getSizeInBits() - N2C->getAPIntValue().logBase2() - 1; in foldSelectCCToShiftAnd()
20464 unsigned ShCt = N2C->getAPIntValue().logBase2(); in SimplifySelectCC()
HDSelectionDAGBuilder.cpp3960 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
HDAPInt.cpp539 unsigned log = tmp.logBase2(); in getBitsNeeded()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
HDSimplifyLibCalls.cpp1573 double N = NI.logBase2() * (IsReciprocal ? -1.0 : 1.0); in replacePowWithExp()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
HDPPCISelLowering.cpp15739 DAG.getConstant((MulAmtAbs - 1).logBase2(), DL, VT)); in combineMUL()
15756 DAG.getConstant((MulAmtAbs + 1).logBase2(), DL, VT)); in combineMUL()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
HDARMISelLowering.cpp14213 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine()
14590 unsigned ShiftAmount = TrueConst->logBase2(); in PerformCMOVCombine()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaChecking.cpp10485 unsigned log2 = divisor.logBase2(); // floor(log_2(divisor)) in GetExprRange()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
HDX86ISelLowering.cpp21553 unsigned ShiftAmt = BitWidth - C1->getAPIntValue().logBase2() - 1; in LowerVSETCC()
38730 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in combineCMov()