Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp48 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
59 EXPECT_EQ(33u, i33minus2.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()
99 EXPECT_EQ(65u, i65minus.getActiveBits()); in TEST()
108 EXPECT_EQ(128u, u128max.getActiveBits()); in TEST()
116 EXPECT_EQ(64u, u64max.getActiveBits()); in TEST()
125 EXPECT_EQ(0u, zero.getActiveBits()); in TEST()
135 EXPECT_EQ(1u, one.getActiveBits()); in TEST()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DAPSIntType.cpp29 MinBits = Value.getActiveBits(); in testInRange()
39 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp35 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
49 EXPECT_EQ(33u, i33minus2.getActiveBits()); in TEST()
63 EXPECT_EQ(65u, i65minus.getActiveBits()); in TEST()
72 EXPECT_EQ(128u, u128max.getActiveBits()); in TEST()
80 EXPECT_EQ(64u, u64max.getActiveBits()); in TEST()
89 EXPECT_EQ(0u, zero.getActiveBits()); in TEST()
99 EXPECT_EQ(1u, one.getActiveBits()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPInt.h451 return getActiveBits() <= N; in isIntN()
1137 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() == Val;
1188 return (isSingleWord() || getActiveBits() <= 64) && getZExtValue() < RHS; in ult()
1258 return (!isSingleWord() && getActiveBits() > 64) || getZExtValue() > RHS; in ugt()
1526 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits() function
1533 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1548 return getActiveBits() + 1; in getMinSignedBits()
1559 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
1741 unsigned logBase2() const { return getActiveBits() - 1; } in logBase2()
1747 return temp.getActiveBits(); in ceilLogBase2()
/external/llvm/include/llvm/ADT/
DAPInt.h375 return getActiveBits() <= N; in isIntN()
406 return (getActiveBits() > 64 || getZExtValue() > Limit) ? Limit
1048 return getActiveBits() > 64 ? false : getZExtValue() < RHS; in ult()
1116 return getActiveBits() > 64 ? true : getZExtValue() > RHS; in ugt()
1303 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits() function
1310 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1325 return getActiveBits() + 1; in getMinSignedBits()
1336 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h379 return getActiveBits() <= N; in isIntN()
410 return (getActiveBits() > 64 || getZExtValue() > Limit) ? Limit
1024 return getActiveBits() > 64 ? false : getZExtValue() < RHS; in ult()
1092 return getActiveBits() > 64 ? true : getZExtValue() > RHS; in ugt()
1279 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits() function
1286 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1301 return getActiveBits() + 1; in getMinSignedBits()
1312 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
/external/swiftshader/third_party/LLVM/lib/Support/
DAPInt.cpp363 unsigned lhsBits = getActiveBits(); in operator *=()
370 unsigned rhsBits = RHS.getActiveBits(); in operator *=()
504 unsigned n1 = getActiveBits(); in EqualSlowCase()
505 unsigned n2 = RHS.getActiveBits(); in EqualSlowCase()
523 unsigned n = getActiveBits(); in EqualSlowCase()
536 unsigned n1 = getActiveBits(); in ult()
537 unsigned n2 = RHS.getActiveBits(); in ult()
957 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) { in roundToDouble()
972 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1367 unsigned magnitude = getActiveBits(); in sqrt()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DAPSInt.cpp34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
DAPInt.cpp760 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) { in roundToDouble()
775 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1029 unsigned magnitude = getActiveBits(); in sqrt()
1540 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1541 unsigned rhsBits = RHS.getActiveBits(); in udiv()
1576 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1631 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1634 unsigned rhsBits = RHS.getActiveBits(); in urem()
1668 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1731 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
[all …]
/external/llvm/lib/Support/
DAPSInt.cpp34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
DAPInt.cpp366 unsigned lhsBits = getActiveBits(); in operator *=()
373 unsigned rhsBits = RHS.getActiveBits(); in operator *=()
516 unsigned n = getActiveBits(); in EqualSlowCase()
529 unsigned n1 = getActiveBits(); in ult()
530 unsigned n2 = RHS.getActiveBits(); in ult()
881 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) { in roundToDouble()
896 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1305 unsigned magnitude = getActiveBits(); in sqrt()
1853 unsigned rhsBits = RHS.getActiveBits(); in udiv()
1856 unsigned lhsBits = this->getActiveBits(); in udiv()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp382 unsigned lhsBits = getActiveBits(); in operator *=()
389 unsigned rhsBits = RHS.getActiveBits(); in operator *=()
494 unsigned n = getActiveBits(); in EqualSlowCase()
507 unsigned n1 = getActiveBits(); in ult()
508 unsigned n2 = RHS.getActiveBits(); in ult()
859 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) { in roundToDouble()
874 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1279 unsigned magnitude = getActiveBits(); in sqrt()
1827 unsigned rhsBits = RHS.getActiveBits(); in udiv()
1830 unsigned lhsBits = this->getActiveBits(); in udiv()
[all …]
/external/llvm/unittests/ADT/
DAPIntTest.cpp43 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
57 EXPECT_EQ(33u, i33minus2.getActiveBits()); in TEST()
70 EXPECT_EQ(0u, i65.getActiveBits()); in TEST()
79 EXPECT_EQ(65u, i65minus.getActiveBits()); in TEST()
88 EXPECT_EQ(128u, u128max.getActiveBits()); in TEST()
96 EXPECT_EQ(64u, u64max.getActiveBits()); in TEST()
105 EXPECT_EQ(0u, zero.getActiveBits()); in TEST()
115 EXPECT_EQ(1u, one.getActiveBits()); in TEST()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h386 return (getActiveBits() > 64 || getZExtValue() > Limit) ?
1135 unsigned getActiveBits() const { in getActiveBits() function
1143 return whichWord(getActiveBits()-1) + 1; in getActiveWords()
1156 return getActiveBits()+1; in getMinSignedBits()
1166 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLoopInfo.cpp212 if (TripCountC->getValue().getActiveBits() <= 32) { in getSmallConstantTripCount()
245 if (CI->getValue().getActiveBits() <= 5) in getSmallConstantTripMultiple()
254 if (Result && Result->getValue().getActiveBits() <= 32) { in getSmallConstantTripMultiple()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp121 if (SimplifiedAddrOp->getValue().getActiveBits() > 64) in visitLoad()
DDemandedBits.cpp153 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp122 if (SimplifiedAddrOp->getValue().getActiveBits() >= 64) in visitLoad()
DDemandedBits.cpp141 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
DBranchProbabilityInfo.cpp212 assert(Weight->getValue().getActiveBits() <= 32 && in calcMetadataWeights()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopPredication.cpp720 return Start->getAPInt().getActiveBits() < RangeCheckTypeBitSize && in isSafeToTruncateWideIVType()
721 Limit->getAPInt().getActiveBits() < RangeCheckTypeBitSize; in isSafeToTruncateWideIVType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantRange.cpp667 if (Upper.getActiveBits() > DstTySize || in truncate()
681 if (LowerDiv.getActiveBits() > DstTySize) { in truncate()
688 unsigned UpperDivWidth = UpperDiv.getActiveBits(); in truncate()
/external/swiftshader/third_party/LLVM/lib/AsmParser/
DLLLexer.cpp671 uint32_t activeBits = Tmp.getActiveBits(); in LexIdentifier()
795 uint32_t activeBits = Tmp.getActiveBits(); in LexDigitOrNegative()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp383 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
393 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
936 DemandedElts = (1 << DemandedElts.getActiveBits()) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DValue.cpp386 if (CI->getValue().getActiveBits() > 64) in isDereferenceablePointer()

1234