| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| HD | StraightLineStrengthReduce.cpp | 609 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump() 615 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
|
| HD | SeparateConstOffsetFromGEP.cpp | 849 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/ |
| HD | APInt.h | 1805 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/ |
| HD | InstCombineSelect.cpp | 204 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()
|
| HD | InstCombineMulDivRem.cpp | 105 return ConstantInt::get(Ty, IVal->logBase2()); in getLogBase2() 121 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getLogBase2()
|
| HD | InstCombineAddSub.cpp | 1241 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd() 1243 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
|
| HD | InstCombineCompares.cpp | 1180 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()
|
| HD | InstCombineCasts.cpp | 902 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| HD | ScalarEvolutionExpander.cpp | 840 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()
|
| HD | ValueTracking.cpp | 2513 return std::min(TyBits, NumBits + Denominator->logBase2()); in ComputeNumSignBitsImpl()
|
| HD | ScalarEvolution.cpp | 1930 MulLHS->getAPInt().logBase2(); in getZeroExtendExpr() 3181 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| HD | AArch64FastISel.cpp | 803 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()
|
| HD | AArch64ISelLowering.cpp | 6786 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()
|
| HD | AArch64ISelDAGToDAG.cpp | 2694 unsigned FBits = IntVal.logBase2(); in SelectCVTFixedPosOperand()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| HD | HexagonISelDAGToDAG.cpp | 2190 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/ |
| HD | MipsSEISelLowering.cpp | 765 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/ |
| HD | TargetLowering.cpp | 2975 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()
|
| HD | DAGCombiner.cpp | 3513 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()
|
| HD | SelectionDAGBuilder.cpp | 3960 unsigned Amt = ElementSize.logBase2(); in visitGetElementPtr()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
| HD | APInt.cpp | 539 unsigned log = tmp.logBase2(); in getBitsNeeded()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| HD | SimplifyLibCalls.cpp | 1573 double N = NI.logBase2() * (IsReciprocal ? -1.0 : 1.0); in replacePowWithExp()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| HD | PPCISelLowering.cpp | 15739 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/ |
| HD | ARMISelLowering.cpp | 14213 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine() 14590 unsigned ShiftAmount = TrueConst->logBase2(); in PerformCMOVCombine()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
| HD | SemaChecking.cpp | 10485 unsigned log2 = divisor.logBase2(); // floor(log_2(divisor)) in GetExprRange()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
| HD | X86ISelLowering.cpp | 21553 unsigned ShiftAmt = BitWidth - C1->getAPIntValue().logBase2() - 1; in LowerVSETCC() 38730 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in combineCMov()
|