|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/APInt.h 451 return getActiveBits() <= N;
1147 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() == Val;
1198 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() < RHS;
1268 return (!isSingleWord() && getActiveBits() > 64) || getZExtValue() > RHS;
1552 unsigned numActiveBits = getActiveBits();
1567 return getActiveBits() + 1;
1578 assert(getActiveBits() <= 64 && "Too many bits for uint64_t");
1760 unsigned logBase2() const { return getActiveBits() - 1; }
1766 return temp.getActiveBits();
lib/Analysis/BasicAliasAnalysis.cpp 1204 if (C1->getValue().getActiveBits() > 64 ||
1205 C2->getValue().getActiveBits() > 64)
lib/Analysis/BranchProbabilityInfo.cpp 285 assert(Weight->getValue().getActiveBits() <= 32 &&
lib/Analysis/DemandedBits.cpp 180 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits());
lib/Analysis/LoopUnrollAnalyzer.cpp 120 if (SimplifiedAddrOp->getValue().getActiveBits() > 64)
lib/Analysis/MemoryBuiltins.cpp 624 if (I.getBitWidth() > IntTyBits && I.getActiveBits() > IntTyBits)
lib/Analysis/ScalarEvolution.cpp 6519 if (ExitConst->getValue().getActiveBits() > 32)
6595 if (!Result || Result->getValue().getActiveBits() > 32 ||
6596 Result->getValue().getActiveBits() == 0)
7905 assert(BEs.getActiveBits() < CHAR_BIT * sizeof(unsigned) &&
lib/AsmParser/LLLexer.cpp 956 uint32_t activeBits = Tmp.getActiveBits();
lib/CodeGen/CodeGenPrepare.cpp 5774 uint32_t ActiveBits = DemandBits.getActiveBits();
lib/CodeGen/MIRParser/MIParser.cpp 2633 if (Token.integerValue().getActiveBits() > 64)
2662 unsigned NumBits = (A == 0) ? 32 : A.getActiveBits();
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 6042 if (NegC->getAPIntValue().getActiveBits() <= Bits &&
6063 if (PosC->getAPIntValue().getActiveBits() <= MaskLoBits &&
14475 NarrowedUsedBits = NarrowedUsedBits.trunc(NarrowedUsedBits.getActiveBits());
lib/CodeGen/SelectionDAG/FastISel.cpp 406 if (CI->getValue().getActiveBits() <= 64)
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 2195 if (DemandedBits.getActiveBits() > SrcBitWidth)
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 8592 unsigned Bits = std::max(Hi.getActiveBits(),
lib/CodeGen/SelectionDAG/TargetLowering.cpp 533 unsigned DemandedSize = Demanded.getActiveBits();
699 if (DemandedBits.getActiveBits() <= ExVT.getScalarSizeInBits())
1317 if ((ShAmt < DemandedBits.getActiveBits()) &&
1327 if (ShAmt < InnerBits && DemandedBits.getActiveBits() <= InnerBits &&
1349 DemandedBits.getActiveBits() <=
1567 if (DemandedBits.getActiveBits() <= ExVTBits)
1629 if (DemandedBits.getActiveBits() <= InBits) {
1662 if (DemandedBits.getActiveBits() <= InBits) {
3183 C1.getActiveBits();
lib/IR/ConstantFold.cpp 1411 if (cast<ConstantInt>(C1)->getValue().getActiveBits() > 64 ||
1412 cast<ConstantInt>(C2)->getValue().getActiveBits() > 64)
lib/IR/ConstantRange.cpp 720 if (Upper.getActiveBits() > DstTySize ||
734 if (LowerDiv.getActiveBits() > DstTySize) {
741 unsigned UpperDivWidth = UpperDiv.getActiveBits();
lib/IR/Constants.cpp 379 if (CI->getValue().getActiveBits() > 64)
1197 (CI->getValue().getActiveBits() > 64 ||
lib/Support/APFloat.cpp 3359 unsigned bits = significand.getActiveBits();
3384 significand = significand.trunc(significand.getActiveBits());
lib/Support/APInt.cpp 812 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) {
827 unsigned n = Tmp.getActiveBits();
1077 unsigned magnitude = getActiveBits();
1586 unsigned lhsWords = getNumWords(getActiveBits());
1587 unsigned rhsBits = RHS.getActiveBits();
1622 unsigned lhsWords = getNumWords(getActiveBits());
1677 unsigned lhsWords = getNumWords(getActiveBits());
1680 unsigned rhsBits = RHS.getActiveBits();
1714 unsigned lhsWords = getNumWords(getActiveBits());
1777 unsigned lhsWords = getNumWords(LHS.getActiveBits());
1778 unsigned rhsBits = RHS.getActiveBits();
1846 unsigned lhsWords = getNumWords(LHS.getActiveBits());
lib/Support/APSInt.cpp 33 unsigned ActiveBits = Tmp.getActiveBits();
lib/Target/ARM/ARMISelLowering.cpp14019 for (unsigned BitInY = 0, NumActiveBits = OrCI.getActiveBits();
lib/Target/ARM/ARMTargetTransformInfo.cpp 69 if (Bits == 0 || Imm.getActiveBits() >= 64)
lib/Target/SystemZ/SystemZISelLowering.cpp 3588 unsigned NumSignificantBits = (~Known.Zero).getActiveBits();
lib/Target/X86/X86ISelDAGToDAG.cpp 3805 unsigned ZExtWidth = Cst->getAPIntValue().getActiveBits();
lib/Target/X86/X86ISelLowering.cpp31450 unsigned Width = ShrunkMask.getActiveBits();
lib/Transforms/IPO/GlobalOpt.cpp 1650 if (CI && CI->getValue().getActiveBits() <= 64) {
1654 if (CIInit && CIInit->getValue().getActiveBits() <= 64) {
lib/Transforms/InstCombine/InstCombineCompares.cpp 5067 if (Op0Known.countMinTrailingZeros() >= CmpC->getActiveBits())
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 197 if (C->getValue().getActiveBits() <= 64) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 325 if (match(RHS, m_APInt(C)) && CTZ >= C->getActiveBits())
403 if (DemandedMask.getActiveBits() > SrcBitWidth)
413 DemandedMask.getActiveBits() <= SrcBitWidth) {
978 DemandedElts.getActiveBits() == 3)
990 DemandedElts = (1 << DemandedElts.getActiveBits()) - 1;
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 635 PowerOf2Ceil(OperandRange.getUnsignedMax().getActiveBits()), 8);
lib/Transforms/Scalar/LoopPredication.cpp 453 return Start->getAPInt().getActiveBits() < RangeCheckTypeBitSize &&
454 Limit->getAPInt().getActiveBits() < RangeCheckTypeBitSize;
tools/clang/lib/AST/ExprConstant.cpp 6004 if (ByteSize.getActiveBits() > ConstantArrayType::getMaxSizeBits(Info.Ctx)) {
tools/clang/lib/AST/Type.cpp 151 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize);
171 return TotalSize.getActiveBits();
tools/clang/lib/Sema/SemaChecking.cpp 5937 if (Result.getActiveBits() > 64 || Result.getZExtValue() >= numElements*2)
8386 if (V.getActiveBits() <= S.Context.getTypeSize(IntendedTy))
10166 return IntRange(value.getActiveBits(), true);
14407 if (MagicValueAPInt.getActiveBits() <= 64) {
tools/clang/lib/Sema/SemaDecl.cpp12780 if (MagicValueInt.getActiveBits() > 64) {
16863 return Value.getActiveBits() <= BitWidth;
17393 (unsigned)InitVal.getActiveBits());
tools/clang/lib/Sema/SemaExpr.cpp 3382 if (!ValueIsPositive || ValueAPS.getActiveBits() > 31) {
8862 : Result.getActiveBits())
8863 : Result.getActiveBits();
tools/clang/lib/Sema/SemaTemplate.cpp 6709 RequiredBits = OldValue.getActiveBits();
6711 RequiredBits = OldValue.getActiveBits() + 1;
tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp 28 MinBits = Value.getActiveBits();
38 MinBits = Value.getActiveBits() + !IsUnsigned;
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp 69 return Result.Val.getInt().getActiveBits();
90 return I->getValue().getActiveBits();
tools/clang/tools/extra/clang-tidy/bugprone/StringIntegerAssignmentCheck.cpp 119 return EvalResult.Val.getInt().getActiveBits() <= Ctx.getTypeSize(CharType);
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp 83 EnumConst->getInitVal().getActiveBits() &&
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 1054 if (AndValue.getActiveBits() > ShiftingValue)
tools/llvm-exegesis/lib/Mips/Target.cpp 36 if (Value.getActiveBits() > 16)
unittests/ADT/APIntTest.cpp 48 EXPECT_EQ(128u, Minus1.getActiveBits());
59 EXPECT_EQ(33u, i33minus2.getActiveBits());
70 EXPECT_EQ(16u, i61.getActiveBits());
79 EXPECT_EQ(19u, i61.getActiveBits());
90 EXPECT_EQ(0u, i65.getActiveBits());
99 EXPECT_EQ(65u, i65minus.getActiveBits());
108 EXPECT_EQ(128u, u128max.getActiveBits());
116 EXPECT_EQ(64u, u64max.getActiveBits());
125 EXPECT_EQ(0u, zero.getActiveBits());
135 EXPECT_EQ(1u, one.getActiveBits());
145 EXPECT_EQ(2u, s128.getActiveBits());
156 EXPECT_EQ(2u, s128.getActiveBits());
166 EXPECT_EQ(32u, s128.getActiveBits());
176 EXPECT_EQ(128u, s128.getActiveBits());
190 EXPECT_EQ(4u, s256.getActiveBits());
200 EXPECT_EQ(66u, s256.getActiveBits());
209 EXPECT_EQ(256u, s256.getActiveBits());
2008 EXPECT_EQ(64u, i128lo64.getActiveBits());
2018 EXPECT_EQ(63u, i64hi1lo1.getActiveBits());
2026 EXPECT_EQ(126u, i127hi1lo1.getActiveBits());
2036 EXPECT_EQ(64u, i64hi32.getActiveBits());
2046 EXPECT_EQ(64u, i64hi31.getActiveBits());
2057 EXPECT_EQ(32u, i64lo32.getActiveBits());
2066 EXPECT_EQ(64u, i128lo64.getActiveBits());
2075 EXPECT_EQ(24u, i128lo24.getActiveBits());
2084 EXPECT_EQ(104u, i128lo104.getActiveBits());
2093 EXPECT_EQ(0u, i128lo0.getActiveBits());
2102 EXPECT_EQ(79u, i80lo79.getActiveBits());
2113 EXPECT_EQ(64u, i64hi32.getActiveBits());
2122 EXPECT_EQ(128u, i128hi64.getActiveBits());
2131 EXPECT_EQ(128u, i128hi24.getActiveBits());
2140 EXPECT_EQ(128u, i128hi104.getActiveBits());
2149 EXPECT_EQ(0u, i128hi0.getActiveBits());
2158 EXPECT_EQ(80u, i80hi1.getActiveBits());
2167 EXPECT_EQ(32u, i32hi16.getActiveBits());
2178 EXPECT_EQ(64u, i64from63.getActiveBits());
2189 EXPECT_EQ(32u, i32.getActiveBits());
2198 EXPECT_EQ(64u, i64.getActiveBits());
2207 EXPECT_EQ(96u, i96.getActiveBits());
2216 EXPECT_EQ(128u, i128.getActiveBits());
2245 EXPECT_EQ(64u, i64hi32.getActiveBits());
2254 EXPECT_EQ(128u, i128hi64.getActiveBits());
2263 EXPECT_EQ(128u, i128hi24.getActiveBits());
2272 EXPECT_EQ(128u, i128hi104.getActiveBits());
2281 EXPECT_EQ(0u, i128hi0.getActiveBits());
2290 EXPECT_EQ(80u, i80hi1.getActiveBits());
2299 EXPECT_EQ(32u, i32hi16.getActiveBits());
utils/TableGen/PredicateExpander.cpp 435 for (unsigned I = 0, E = ProcModelMask.getActiveBits(); I < E; ++I) {