Home
last modified time | relevance | path

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

/external/llvm/unittests/ADT/
DAPIntTest.cpp38 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
51 EXPECT_EQ(32u, i33minus2.countPopulation()); in TEST()
65 EXPECT_EQ(0u, i65.countPopulation()); in TEST()
73 EXPECT_EQ(1u, i65minus.countPopulation()); in TEST()
83 EXPECT_EQ(128u, u128max.countPopulation()); in TEST()
91 EXPECT_EQ(64u, u64max.countPopulation()); in TEST()
100 EXPECT_EQ(0u, zero.countPopulation()); in TEST()
110 EXPECT_EQ(1u, one.countPopulation()); in TEST()
/external/llvm/include/llvm/ADT/
DAPInt.h355 : !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
1408 unsigned countPopulation() const { in countPopulation() function
1410 return llvm::countPopulation(VAL); in countPopulation()
DSmallBitVector.h185 return countPopulation(Bits); in count()
DBitVector.h124 NumBits += countPopulation(Bits[i]); in count()
DSparseBitVector.h127 NumBits += countPopulation(Bits[i]);
/external/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp635 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), EltTy); in selectVSplatMaskL()
666 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), EltTy); in selectVSplatMaskR()
DMipsISelLowering.cpp73 Size = countPopulation(I); in isShiftedMask()
/external/llvm/include/llvm/Support/
DMathExtras.h445 inline unsigned countPopulation(T Value) {
/external/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp106 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset()
/external/llvm/lib/Target/R600/
DAMDGPUISelDAGToDAG.cpp1206 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
1227 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
DAMDGPUInstructions.td586 return CurDAG->getTargetConstant(countPopulation(N->getZExtValue()),
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1948 unsigned PopCount = countPopulation(B.Mask); in visitBitTestCase()
2142 if (BigValue.countPopulation() == SmallValue.countPopulation() + 1 && in handleSmallSwitchRange()
2147 CommonBit.countPopulation() == 1 && "Not a common bit?"); in handleSmallSwitchRange()
4400 countPopulation(Val) + Log2_32(Val) < 7) { in ExpandPowI()
DTargetLowering.cpp1155 return (KnownZero.countPopulation() == BitWidth - 1) && in ValueHasExactlyOneBitSet()
1156 (KnownOne.countPopulation() == 1); in ValueHasExactlyOneBitSet()
DDAGCombiner.cpp9242 unsigned SliceSize = getUsedBits().countPopulation(); in getLoadedSize()
12811 if (ConstAndRHS && ConstAndRHS->getAPIntValue().countPopulation() == 1) { in SimplifySelectCC()
DSelectionDAG.cpp2772 return getConstant(Val.countPopulation(), VT, C->isTargetOpcode(), in getNode()
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp901 assert(StackTop == countPopulation(Mask) && "Live count mismatch"); in adjustLiveRegs()
DX86ISelLowering.cpp22273 uint64_t MaskSize = countPopulation(Mask); in PerformAndCombine()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp872 if (Op1MaybeOne.countPopulation() != 1) in checkRippleForAdd()
DInstCombineAndOrXor.cpp384 Mask->getValue().countPopulation()) == in FoldLogicalPlusAnd()
404 Mask->getValue().countPopulation()) == Mask->getValue().getBitWidth() in FoldLogicalPlusAnd()
DInstCombineCasts.cpp605 if (UnknownBit.countPopulation() == 1) { in transformZExtICmp()
/external/llvm/lib/Analysis/
DConstantFolding.cpp1542 return ConstantInt::get(Ty, Op->getValue().countPopulation()); in ConstantFoldScalarCall()
/external/llvm/lib/Support/
DAPInt.cpp774 Count += llvm::countPopulation(pVal[i]); in countPopulationSlowCase()
/external/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp987 return DAG.getTargetConstant(countPopulation(V), MVT::i64); in LowerCTPOP()
/external/clang/lib/AST/
DExprConstant.cpp6377 return Success(Val.countPopulation() % 2, E); in VisitCallExpr()
6387 return Success(Val.countPopulation(), E); in VisitCallExpr()