Home
last modified time | relevance | path

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

/external/clang/lib/StaticAnalyzer/Core/
DAPSIntType.cpp29 MinBits = Value.getActiveBits(); in testInRange()
39 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/external/llvm/include/llvm/ADT/
DAPInt.h375 return getActiveBits() <= N; in isIntN()
406 return (getActiveBits() > 64 || getZExtValue() > Limit) ? Limit
1290 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits() function
1297 unsigned numActiveBits = getActiveBits(); in getActiveWords()
1312 return getActiveBits() + 1; in getMinSignedBits()
1323 assert(getActiveBits() <= 64 && "Too many bits for uint64_t"); in getZExtValue()
/external/llvm/lib/Support/
DAPInt.cpp365 unsigned lhsBits = getActiveBits(); in operator *=()
372 unsigned rhsBits = RHS.getActiveBits(); in operator *=()
494 unsigned n1 = getActiveBits(); in EqualSlowCase()
495 unsigned n2 = RHS.getActiveBits(); in EqualSlowCase()
513 unsigned n = getActiveBits(); in EqualSlowCase()
526 unsigned n1 = getActiveBits(); in ult()
527 unsigned n2 = RHS.getActiveBits(); in ult()
875 if (isSingleWord() || getActiveBits() <= APINT_BITS_PER_WORD) { in roundToDouble()
890 unsigned n = Tmp.getActiveBits(); in roundToDouble()
1299 unsigned magnitude = getActiveBits(); in sqrt()
[all …]
DAPFloat.cpp3469 unsigned bits = significand.getActiveBits(); in AdjustToPrecision()
3494 significand = significand.trunc(significand.getActiveBits()); in AdjustToPrecision()
/external/llvm/unittests/ADT/
DAPIntTest.cpp35 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
49 EXPECT_EQ(33u, i33minus2.getActiveBits()); in TEST()
62 EXPECT_EQ(0u, i65.getActiveBits()); in TEST()
71 EXPECT_EQ(65u, i65minus.getActiveBits()); in TEST()
80 EXPECT_EQ(128u, u128max.getActiveBits()); in TEST()
88 EXPECT_EQ(64u, u64max.getActiveBits()); in TEST()
97 EXPECT_EQ(0u, zero.getActiveBits()); in TEST()
107 EXPECT_EQ(1u, one.getActiveBits()); in TEST()
/external/llvm/lib/AsmParser/
DLLLexer.cpp784 uint32_t activeBits = Tmp.getActiveBits(); in LexIdentifier()
914 uint32_t activeBits = Tmp.getActiveBits(); in LexDigitOrNegative()
/external/llvm/lib/Transforms/Scalar/
DBDCE.cpp152 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
/external/llvm/lib/IR/
DValue.cpp562 if (CI->getValue().getActiveBits() > 64) in isDereferenceablePointer()
DConstantFold.cpp1289 if (cast<ConstantInt>(C1)->getValue().getActiveBits() > 64 || in IdxCompare()
1290 cast<ConstantInt>(C2)->getValue().getActiveBits() > 64) in IdxCompare()
2011 if (CI->getValue().getActiveBits() > 64) in isIndexInRangeOfSequentialType()
DConstants.cpp1169 if (CI->getValue().getActiveBits() > 64 || in isGEPWithNoNotionalOverIndexing()
/external/clang/lib/Sema/
DSemaChecking.cpp2383 if (Result.getActiveBits() > 64 || Result.getZExtValue() >= numElements*2) in SemaBuiltinShuffleVector()
3827 if (V.getActiveBits() <= S.Context.getTypeSize(IntendedTy)) in checkFormatExpr()
5685 return IntRange(value.getActiveBits(), true); in GetValueRange()
6098 if (OtherWidth >= Value.getActiveBits() + 1) in DiagnoseOutOfRangeComparison()
6105 if (Value.isNonNegative() && OtherWidth >= Value.getActiveBits()) in DiagnoseOutOfRangeComparison()
6108 if (OtherWidth >= Value.getActiveBits()) in DiagnoseOutOfRangeComparison()
6114 if (OtherWidth >= Value.getActiveBits()) in DiagnoseOutOfRangeComparison()
6120 if (OtherWidth > Value.getActiveBits()) in DiagnoseOutOfRangeComparison()
9122 if (MagicValueAPInt.getActiveBits() <= 64) { in FindTypeTagExpr()
DSemaTemplate.cpp5073 RequiredBits = OldValue.getActiveBits(); in CheckTemplateArgument()
5075 RequiredBits = OldValue.getActiveBits() + 1; in CheckTemplateArgument()
DSemaDecl.cpp9774 if (MagicValueInt.getActiveBits() > 64) { in FinalizeDeclaration()
13224 return Value.getActiveBits() <= BitWidth; in isRepresentableIntegerValue()
13758 (unsigned)InitVal.getActiveBits()); in ActOnEnumBody()
DSemaExpr.cpp3173 if (!ValueIsPositive || ValueAPS.getActiveBits() > 31) { in CheckLoopHintExpr()
/external/clang/lib/AST/
DType.cpp88 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize); in getNumAddressingBits()
108 return TotalSize.getActiveBits(); in getNumAddressingBits()
/external/llvm/include/llvm/IR/
DConstants.h206 return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num; in uge()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp915 if (C->getValue().getActiveBits() <= cast<IntegerType>(Ty)->getBitWidth()) in dyn_castZExtVal()
DInstCombineAndOrXor.cpp355 ME = V.getActiveBits(); in isRunOfOnes()
DInstCombineCompares.cpp1263 if (ICI.isEquality() && RHSV.getActiveBits() <= Ty->getBitWidth()) { in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp4470 if (ExitConst->getValue().getActiveBits() > 32) in getSmallConstantTripCount()
4524 if (!Result || Result->getValue().getActiveBits() > 32 || in getSmallConstantTripMultiple()
4525 Result->getValue().getActiveBits() == 0) in getSmallConstantTripMultiple()
5468 if (BEs.getActiveBits() >= 32) in getConstantEvolutionLoopExitValue()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp211 if (CI->getValue().getActiveBits() <= 64) in materializeConstant()
DTargetLowering.cpp1333 C1.getActiveBits(); in SimplifySetCC()
DDAGCombiner.cpp2991 uint32_t ActiveBits = N1C->getAPIntValue().getActiveBits(); in visitAND()
9426 NarrowedUsedBits = NarrowedUsedBits.trunc(NarrowedUsedBits.getActiveBits()); in areUsedBitsDense()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp2428 unsigned NumSignificantBits = (~KnownZero).getActiveBits(); in lowerCTPOP()