| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | APSIntType.cpp | 28 MinBits = Value.getActiveBits(); in testInRange() 38 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 48 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 D | APInt.h | 417 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 D | APSInt.cpp | 34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
|
| H A D | APInt.cpp | 860 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 D | MisplacedWideningCastCheck.cpp | 67 return Result.Val.getInt().getActiveBits(); in getMaxCalculationWidth() 88 return I->getValue().getActiveBits(); in getMaxCalculationWidth()
|
| H A D | StringIntegerAssignmentCheck.cpp | 116 return EvalResult.Val.getInt().getActiveBits() <= Ctx.getTypeSize(CharType); in isCharValuedConstant()
|
| H A D | SuspiciousEnumUsageCheck.cpp | 83 EnumConst->getInitVal().getActiveBits() && in isMaxValAllBitSetLiteral()
|
| /llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/Mips/ |
| H A D | Target.cpp | 98 if (!IsGPR32 && Value.getActiveBits() == 32) { in loadImmediate()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 319 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 D | LoopUnrollAnalyzer.cpp | 128 if (SimplifiedAddrOp->getValue().getActiveBits() > 64) in visitLoad()
|
| H A D | DemandedBits.cpp | 198 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 297 unsigned getActiveBits() const;
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 476 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 D | ARMAddressingModes.h | 693 if (Imm.getActiveBits() > 16) in getFP32FP16Imm()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 589 if (!(VTableGVOffset.getActiveBits() <= 64)) in tryPromoteCall()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 442 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 D | LoopPredication.cpp | 471 return Start->getAPInt().getActiveBits() < RangeCheckTypeBitSize && in isSafeToTruncateWideIVType() 472 Limit->getAPInt().getActiveBits() < RangeCheckTypeBitSize; in isSafeToTruncateWideIVType()
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | PredicateExpander.cpp | 453 for (unsigned I = 0, E = ProcModelMask.getActiveBits(); I < E; ++I) { in expandOpcodeGroup()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 1142 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 D | ImplicitNullChecks.cpp | 442 if (DisplacementC.getActiveBits() > 64) in isSuitableMemoryOp()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 84 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 D | GlobalOpt.cpp | 371 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 D | KnownBitsTest.cpp | 430 Expected = std::max(Expected, N.getActiveBits()); in TEST()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantRangeTest.cpp | 631 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()
|