Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp28 MinBits = Value.getActiveBits(); in testInRange()
38 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h412 bool isIntN(unsigned N) const { return getActiveBits() <= N; } in isIntN()
1050 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() == Val;
1101 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() < RHS; in ult()
1172 return (!isSingleWord() && getActiveBits() > 64) || getZExtValue() > RHS; in ugt()
1472 unsigned getActiveBits() const { return BitWidth - countl_zero(); } in getActiveBits() function
1479 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1503 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
1513 return (getActiveBits() <= 64) ? std::optional<uint64_t>(getZExtValue()) in tryZExtValue()
1719 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2()
1725 return temp.getActiveBits(); in ceilLogBase2()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
H A DAPInt.cpp853 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) { in roundToDouble()
868 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1172 unsigned magnitude = getActiveBits(); in sqrt()
1553 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1554 unsigned rhsBits = RHS.getActiveBits(); in udiv()
1589 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1644 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1647 unsigned rhsBits = RHS.getActiveBits(); in urem()
1681 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1744 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
[all …]
/freebsd/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/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()
H A DMemoryBuiltins.cpp371 if (I.getBitWidth() > IntTyBits && I.getActiveBits() > IntTyBits) in CheckedZextOrTrunc()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp84 assert(Weight->getValue().getActiveBits() <= (sizeof(T) * 8) && in extractFromBranchWeightMD()
H A DConstantRange.cpp533 unsigned ConstantRange::getActiveBits() const { in getActiveBits() function in ConstantRange
537 return getUnsignedMax().getActiveBits(); in getActiveBits()
879 if (Upper.getActiveBits() > DstTySize || Upper.countr_one() == DstTySize) in truncate()
892 if (LowerDiv.getActiveBits() > DstTySize) { in truncate()
899 unsigned UpperDivWidth = UpperDiv.getActiveBits(); in truncate()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h305 unsigned getActiveBits() const;
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h680 if (Imm.getActiveBits() > 16) in getFP32FP16Imm()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp466 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
476 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
555 C->isOneBitSet(DemandedMask.getActiveBits() - 1)) { in SimplifyDemandedUseBits()
1077 CTZ >= C->getActiveBits()) in SimplifyDemandedUseBits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp635 if (!(VTableGVOffset.getActiveBits() <= 64)) in tryPromoteCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp440 return Start->getAPInt().getActiveBits() < RangeCheckTypeBitSize &&
441 Limit->getAPInt().getActiveBits() < RangeCheckTypeBitSize;
H A DCorrelatedValuePropagation.cpp885 unsigned MaxActiveBits = std::max(XCR.getActiveBits(), YCR.getActiveBits()); in narrowUDivOrURem()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DPredicateExpander.cpp496 for (unsigned I = 0, E = ProcModelMask.getActiveBits(); I < E; ++I) { in expandOpcodeGroup()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DImplicitNullChecks.cpp440 if (DisplacementC.getActiveBits() > 64) in isSuitableMemoryOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1347 if (CI->getValue().getActiveBits() <= 32) in getInstructionCost()
1466 if (CI->getValue().getActiveBits() <= 32) in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp379 if (Ptr != GV || Offset.getActiveBits() >= 64) in collectSRATypes()
1204 if (CI && CI->getValue().getActiveBits() <= 64) { in TryToShrinkGlobalToBoolean()
1208 if (CIInit && CIInit->getValue().getActiveBits() <= 64) { in TryToShrinkGlobalToBoolean()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp273 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
315 unsigned Leading = XLen - Mask.getActiveBits(); in selectSHXADDOp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp87 return IntValue.getActiveBits() <= 16; in canSafelyConvertTo16Bit()
1306 const unsigned ActiveBits = DemandedElts.getActiveBits(); in simplifyAMDGCNMemoryIntrinsicDemanded()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp310 (!IsSExt && Elt.getActiveBits() > SrcEltBitWidth)) in rebuildExtCst()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp992 uint32_t activeBits = Tmp.getActiveBits(); in LexIdentifier()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp602 unsigned DemandedSize = DemandedBits.getActiveBits(); in ShrinkDemandedOp()
837 if (DemandedBits.getActiveBits() <= ExBits && in SimplifyMultipleUseDemandedBits()
859 DemandedBits.getActiveBits() <= SrcVT.getScalarSizeInBits()) { in SimplifyMultipleUseDemandedBits()
1772 if (ShAmt < InnerBits && DemandedBits.getActiveBits() <= InnerBits && in SimplifyDemandedBits()
1793 DemandedBits.getActiveBits() <= in SimplifyDemandedBits()
1838 if (ShAmt < DemandedBits.getActiveBits() && !VT.isVector() && in SimplifyDemandedBits()
1842 unsigned DemandedSize = DemandedBits.getActiveBits(); in SimplifyDemandedBits()
2371 if (DemandedBits.getActiveBits() <= ExVTBits) in SimplifyDemandedBits()
2431 if (DemandedBits.getActiveBits() <= InBits) { in SimplifyDemandedBits()
2483 if (DemandedBits.getActiveBits() <= InBits) { in SimplifyDemandedBits()
[all …]

123