Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp28 MinBits = Value.getActiveBits(); in testInRange()
38 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp48 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
70 EXPECT_EQ(16u, i61.getActiveBits()); in TEST()
79 EXPECT_EQ(19u, i61.getActiveBits()); in TEST()
90 EXPECT_EQ(0u, i65.getActiveBits()); in TEST()
125 EXPECT_EQ(0u, zero.getActiveBits()); in TEST()
135 EXPECT_EQ(1u, one.getActiveBits()); in TEST()
145 EXPECT_EQ(2u, s128.getActiveBits()); in TEST()
156 EXPECT_EQ(2u, s128.getActiveBits()); in TEST()
166 EXPECT_EQ(32u, s128.getActiveBits()); in TEST()
190 EXPECT_EQ(4u, s256.getActiveBits()); in TEST()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPInt.h417 bool isIntN(unsigned N) const { return getActiveBits() <= N; } in isIntN()
1020 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() == Val;
1071 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() < RHS; in ult()
1142 return (!isSingleWord() && getActiveBits() > 64) || getZExtValue() > RHS; in ugt()
1435 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits() function
1442 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1469 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
1652 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2()
1658 return temp.getActiveBits(); in ceilLogBase2()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPSInt.cpp34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
H A DAPInt.cpp860 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1164 unsigned magnitude = getActiveBits(); in sqrt()
1581 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1582 unsigned rhsBits = RHS.getActiveBits(); in udiv()
1617 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1672 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1675 unsigned rhsBits = RHS.getActiveBits(); in urem()
1709 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1772 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1773 unsigned rhsBits = RHS.getActiveBits(); in udivrem()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMisplacedWideningCastCheck.cpp67 return Result.Val.getInt().getActiveBits(); in getMaxCalculationWidth()
88 return I->getValue().getActiveBits(); in getMaxCalculationWidth()
H A DStringIntegerAssignmentCheck.cpp116 return EvalResult.Val.getInt().getActiveBits() <= Ctx.getTypeSize(CharType); in isCharValuedConstant()
H A DSuspiciousEnumUsageCheck.cpp83 EnumConst->getInitVal().getActiveBits() && in isMaxValAllBitSetLiteral()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/Mips/
H A DTarget.cpp98 if (!IsGPR32 && Value.getActiveBits() == 32) { in loadImmediate()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp128 if (SimplifiedAddrOp->getValue().getActiveBits() > 64) in visitLoad()
H A DDemandedBits.cpp198 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h297 unsigned getActiveBits() const;
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp476 unsigned ConstantRange::getActiveBits() const { in getActiveBits() function in ConstantRange
480 return getUnsignedMax().getActiveBits(); in getActiveBits()
822 if (Upper.getActiveBits() > DstTySize || in truncate()
836 if (LowerDiv.getActiveBits() > DstTySize) { in truncate()
843 unsigned UpperDivWidth = UpperDiv.getActiveBits(); in truncate()
/llvm-project-15.0.7/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h693 if (Imm.getActiveBits() > 16) in getFP32FP16Imm()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp589 if (!(VTableGVOffset.getActiveBits() <= 64)) in tryPromoteCall()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp442 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
452 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
907 CTZ >= C->getActiveBits()) in SimplifyDemandedUseBits()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp471 return Start->getAPInt().getActiveBits() < RangeCheckTypeBitSize && in isSafeToTruncateWideIVType()
472 Limit->getAPInt().getActiveBits() < RangeCheckTypeBitSize; in isSafeToTruncateWideIVType()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DPredicateExpander.cpp453 for (unsigned I = 0, E = ProcModelMask.getActiveBits(); I < E; ++I) { in expandOpcodeGroup()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1142 if (CI->getValue().getActiveBits() <= 32) in getUserCost()
1231 if (CI->getValue().getActiveBits() <= 32) in getUserCost()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DImplicitNullChecks.cpp442 if (DisplacementC.getActiveBits() > 64) in isSuitableMemoryOp()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp84 return IntValue.getActiveBits() <= 16; in canSafelyConvertTo16Bit()
1104 const unsigned ActiveBits = DemandedElts.getActiveBits(); in simplifyAMDGCNMemoryIntrinsicDemanded()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp371 if (Ptr != GV || Offset.getActiveBits() >= 64) in collectSRATypes()
1171 if (CI && CI->getValue().getActiveBits() <= 64) { in TryToShrinkGlobalToBoolean()
1175 if (CIInit && CIInit->getValue().getActiveBits() <= 64) { in TryToShrinkGlobalToBoolean()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DKnownBitsTest.cpp430 Expected = std::max(Expected, N.getActiveBits()); in TEST()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp631 TEST_F(ConstantRangeTest, getActiveBits) { in TEST_F() argument
636 Exact = std::max(Exact, N.getActiveBits()); in TEST_F()
639 unsigned ResultCR = CR.getActiveBits(); in TEST_F()
646 unsigned MinBitWidth = CR.getActiveBits(); in TEST_F()

123