Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp28 MinBits = Value.getActiveBits(); in testInRange()
38 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h410 bool isIntN(unsigned N) const { return getActiveBits() <= N; } in isIntN()
1042 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() == Val;
1093 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() < RHS; in ult()
1164 return (!isSingleWord() && getActiveBits() > 64) || getZExtValue() > RHS; in ugt()
1457 unsigned getActiveBits() const { return BitWidth - countl_zero(); } in getActiveBits() function
1464 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1488 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
1498 return (getActiveBits() <= 64) ? std::optional<uint64_t>(getZExtValue()) in tryZExtValue()
1696 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2()
1702 return temp.getActiveBits(); in ceilLogBase2()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
H A DAPInt.cpp868 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1172 unsigned magnitude = getActiveBits(); in sqrt()
1589 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1590 unsigned rhsBits = RHS.getActiveBits(); in udiv()
1625 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1680 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1683 unsigned rhsBits = RHS.getActiveBits(); in urem()
1717 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1780 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1781 unsigned rhsBits = RHS.getActiveBits(); in udivrem()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp115 assert(Weight->getValue().getActiveBits() <= 32 && in extractFromBranchWeightMD()
H A DConstantRange.cpp477 unsigned ConstantRange::getActiveBits() const { in getActiveBits() function in ConstantRange
481 return getUnsignedMax().getActiveBits(); in getActiveBits()
823 if (Upper.getActiveBits() > DstTySize || Upper.countr_one() == DstTySize) in truncate()
836 if (LowerDiv.getActiveBits() > DstTySize) { in truncate()
843 unsigned UpperDivWidth = UpperDiv.getActiveBits(); in truncate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp319 std::max(MinBitWidth, KnownLHS.getMaxValue().getActiveBits()); in getBestTruncatedType()
335 std::max(Known.getMaxValue().getActiveBits(), MinBitWidth); in getBestTruncatedType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp128 if (SimplifiedAddrOp->getValue().getActiveBits() > 64) in visitLoad()
H A DDemandedBits.cpp172 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h297 unsigned getActiveBits() const;
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBitwiseShiftChecker.cpp258 const unsigned UsedBitsInLeftOperand = Left->getValue().getActiveBits(); in checkLeftShiftOverflow()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp469 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
479 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
559 C->isOneBitSet(DemandedMask.getActiveBits() - 1)) { in SimplifyDemandedUseBits()
1026 CTZ >= C->getActiveBits()) in SimplifyDemandedUseBits()
H A DInstCombineLoadStoreAlloca.cpp211 if (C->getValue().getActiveBits() <= 64) { in simplifyAllocaArraySize()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h680 if (Imm.getActiveBits() > 16) in getFP32FP16Imm()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp602 if (!(VTableGVOffset.getActiveBits() <= 64)) in tryPromoteCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp440 return Start->getAPInt().getActiveBits() < RangeCheckTypeBitSize && in isSafeToTruncateWideIVType()
441 Limit->getAPInt().getActiveBits() < RangeCheckTypeBitSize; in isSafeToTruncateWideIVType()
H A DCorrelatedValuePropagation.cpp820 unsigned MaxActiveBits = std::max(XCR.getActiveBits(), YCR.getActiveBits()); in narrowUDivOrURem()
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DPredicateExpander.cpp496 for (unsigned I = 0, E = ProcModelMask.getActiveBits(); I < E; ++I) { in expandOpcodeGroup()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DImplicitNullChecks.cpp440 if (DisplacementC.getActiveBits() > 64) in isSuitableMemoryOp()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1304 if (CI->getValue().getActiveBits() <= 32) in getInstructionCost()
1399 if (CI->getValue().getActiveBits() <= 32) in getInstructionCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp87 return IntValue.getActiveBits() <= 16; in canSafelyConvertTo16Bit()
1224 const unsigned ActiveBits = DemandedElts.getActiveBits(); in simplifyAMDGCNMemoryIntrinsicDemanded()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp369 if (Ptr != GV || Offset.getActiveBits() >= 64) in collectSRATypes()
1193 if (CI && CI->getValue().getActiveBits() <= 64) { in TryToShrinkGlobalToBoolean()
1197 if (CIInit && CIInit->getValue().getActiveBits() <= 64) { in TryToShrinkGlobalToBoolean()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp261 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
303 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp966 uint32_t activeBits = Tmp.getActiveBits(); in LexIdentifier()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp596 unsigned DemandedSize = DemandedBits.getActiveBits(); in ShrinkDemandedOp()
824 if (DemandedBits.getActiveBits() <= ExBits && in SimplifyMultipleUseDemandedBits()
846 DemandedBits.getActiveBits() <= SrcVT.getScalarSizeInBits()) { in SimplifyMultipleUseDemandedBits()
1762 if (ShAmt < InnerBits && DemandedBits.getActiveBits() <= InnerBits && in SimplifyDemandedBits()
1783 DemandedBits.getActiveBits() <= in SimplifyDemandedBits()
1828 if ((ShAmt < DemandedBits.getActiveBits()) && in SimplifyDemandedBits()
2341 if (DemandedBits.getActiveBits() <= ExVTBits) in SimplifyDemandedBits()
2402 if (DemandedBits.getActiveBits() <= InBits) { in SimplifyDemandedBits()
2455 if (DemandedBits.getActiveBits() <= InBits) { in SimplifyDemandedBits()
3946 AndC->getAPIntValue().getActiveBits()); in foldSetCCWithAnd()
[all …]

123