Home
last modified time | relevance | path

Searched refs:countPopulation (Results 1 – 25 of 31) sorted by relevance

12

/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h46 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
DHexagonShuffler.cpp41 HexagonBid(unsigned B) { Bid = B ? MAX / countPopulation(B) : 0; }; in HexagonBid()
93 (Key << (SlotWeight * s)) * ((MaskWeight - countPopulation(getUnits())) in setWeight()
/external/llvm/unittests/ADT/
DAPIntTest.cpp46 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
59 EXPECT_EQ(32u, i33minus2.countPopulation()); in TEST()
73 EXPECT_EQ(0u, i65.countPopulation()); in TEST()
81 EXPECT_EQ(1u, i65minus.countPopulation()); in TEST()
91 EXPECT_EQ(128u, u128max.countPopulation()); in TEST()
99 EXPECT_EQ(64u, u64max.countPopulation()); in TEST()
108 EXPECT_EQ(0u, zero.countPopulation()); in TEST()
118 EXPECT_EQ(1u, one.countPopulation()); in TEST()
/external/llvm/include/llvm/ADT/
DAPInt.h355 return !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
1416 unsigned countPopulation() const { in countPopulation() function
1418 return llvm::countPopulation(VAL); in countPopulation()
DSmallBitVector.h185 return countPopulation(Bits); in count()
DBitVector.h124 NumBits += countPopulation(Bits[i]); in count()
DSparseBitVector.h126 NumBits += countPopulation(Bits[i]);
/external/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp643 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), SDLoc(N), in selectVSplatMaskL()
675 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), SDLoc(N), in selectVSplatMaskR()
/external/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp101 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset()
/external/llvm/include/llvm/Support/
DMathExtras.h449 inline unsigned countPopulation(T Value) {
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp1321 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
1342 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
DAMDGPUInstructions.td593 return CurDAG->getTargetConstant(countPopulation(N->getZExtValue()), SDLoc(N),
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp383 Mask->getValue().countPopulation()) == in FoldLogicalPlusAnd()
403 Mask->getValue().countPopulation()) == Mask->getValue().getBitWidth() in FoldLogicalPlusAnd()
1667 unsigned InputBitLen = BitMask.countPopulation(); in CollectBitParts()
DInstCombineSimplifyDemanded.cpp1143 if (SubUndef.countPopulation() == Ratio) in SimplifyDemandedVectorElts()
DInstCombineAddSub.cpp872 if (Op1MaybeOne.countPopulation() != 1) in checkRippleForAdd()
DInstCombineCasts.cpp680 if (UnknownBit.countPopulation() == 1) { in transformZExtICmp()
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp891 assert(StackTop == countPopulation(Mask) && "Live count mismatch"); in adjustLiveRegs()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1197 return (KnownZero.countPopulation() == BitWidth - 1) && in ValueHasExactlyOneBitSet()
1198 (KnownOne.countPopulation() == 1); in ValueHasExactlyOneBitSet()
DSelectionDAGBuilder.cpp2050 unsigned PopCount = countPopulation(B.Mask); in visitBitTestCase()
4197 countPopulation(Val) + Log2_32(Val) < 7) { in ExpandPowI()
/external/llvm/lib/Analysis/
DConstantFolding.cpp1594 return ConstantInt::get(Ty, Op->getValue().countPopulation()); in ConstantFoldScalarCall()
DValueTracking.cpp1504 unsigned BitsPossiblySet = BitWidth - KnownZero2.countPopulation(); in computeKnownBitsFromOperator()
/external/llvm/lib/Support/
DAPInt.cpp774 Count += llvm::countPopulation(pVal[i]); in countPopulationSlowCase()
/external/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp1209 return DAG.getTargetConstant(countPopulation(V), dl, MVT::i64); in LowerCTPOP()
/external/clang/lib/AST/
DExprConstant.cpp6716 return Success(Val.countPopulation() % 2, E); in VisitCallExpr()
6726 return Success(Val.countPopulation(), E); in VisitCallExpr()
/external/clang/lib/CodeGen/
DCGExpr.cpp2386 assert(llvm::countPopulation(Kind) == 1); in getRecoverableKind()

12