Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp51 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
61 EXPECT_EQ(32u, i33minus2.countPopulation()); in TEST()
72 EXPECT_EQ(1u, i61.countPopulation()); in TEST()
81 EXPECT_EQ(11u, i61.countPopulation()); in TEST()
93 EXPECT_EQ(0u, i65.countPopulation()); in TEST()
101 EXPECT_EQ(1u, i65minus.countPopulation()); in TEST()
111 EXPECT_EQ(128u, u128max.countPopulation()); in TEST()
119 EXPECT_EQ(64u, u64max.countPopulation()); in TEST()
128 EXPECT_EQ(0u, zero.countPopulation()); in TEST()
138 EXPECT_EQ(1u, one.countPopulation()); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DKnownBits.h52 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant()
187 return One.countPopulation(); in countMinPopulation()
192 return getBitWidth() - Zero.countPopulation(); in countMaxPopulation()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mca/
DScheduler.h166 assert(llvm::countPopulation(ResourceMask) > 1); in computeResourceSizeMaskForGroup()
174 bool IsAGroup = llvm::countPopulation(ResourceMask) > 1; in ResourceState()
206 llvm::countPopulation(ReadyMask) >= NumUnits;
209 return llvm::countPopulation(ResourceMask) > 1; in isAResourceGroup()
225 return isAResourceGroup() ? 1U : llvm::countPopulation(ResourceSizeMask); in getNumUnits()
DInstrBuilder.cpp69 unsigned popcntA = countPopulation(A.first); in initializeUsedResources()
70 unsigned popcntB = countPopulation(B.first); in initializeUsedResources()
92 if (countPopulation(A.first) == 1) { in initializeUsedResources()
103 if (countPopulation(B.first) > 1) in initializeUsedResources()
127 if (countPopulation(RPC.first) > 1 && !RPC.second.isReserved()) { in initializeUsedResources()
DScheduler.cpp73 assert(countPopulation(ID) == 1); in removeFromNextInSequence()
198 assert((countPopulation(R.first) > 1) && "Expected a group!"); in issueInstruction()
215 if (countPopulation(RR.first) == 1) in cycleEvent()
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp38 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
51 EXPECT_EQ(32u, i33minus2.countPopulation()); in TEST()
65 EXPECT_EQ(1u, i65minus.countPopulation()); in TEST()
75 EXPECT_EQ(128u, u128max.countPopulation()); in TEST()
83 EXPECT_EQ(64u, u64max.countPopulation()); in TEST()
92 EXPECT_EQ(0u, zero.countPopulation()); in TEST()
102 EXPECT_EQ(1u, one.countPopulation()); in TEST()
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h47 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h56 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
DHexagonShuffler.cpp51 HexagonBid(unsigned B) { Bid = B ? MAX / countPopulation(B) : 0; } in HexagonBid()
103 unsigned Ctpop = countPopulation(Units); 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DLaneBitmask.h77 return countPopulation(Mask); in getNumLanes()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h316 return countPopulation() == BitWidth; in isAllOnesValue()
323 return countPopulation() == BitWidth; in isMaxValue()
331 !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
1243 unsigned countPopulation() const { in countPopulation() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DGlobalsStream.cpp104 NumBuckets += countPopulation(B); in readGSIHashBuckets()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCSchedule.cpp143 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
/external/llvm/lib/DebugInfo/PDB/Raw/
DPublicsStream.cpp123 NumBuckets += countPopulation(B); in reload()
/external/llvm/include/llvm/ADT/
DAPInt.h355 return !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
1421 unsigned countPopulation() const { in countPopulation() function
1423 return llvm::countPopulation(VAL); in countPopulation()
DSmallBitVector.h182 return countPopulation(Bits); in count()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h359 return !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
1397 unsigned countPopulation() const { in countPopulation() function
1399 return llvm::countPopulation(VAL); in countPopulation()
/external/swiftshader/third_party/subzero/src/
DIceBitVector.h135 Count += llvm::countPopulation(Bits[i]); in count()
358 NumBits += llvm::countPopulation(Bits[i]); in count()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp945 DemandedElts &= (1 << countPopulation(DMaskVal)) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded()
963 unsigned NewNumElts = PowerOf2Ceil(DemandedElts.countPopulation()); in simplifyAMDGCNMemoryIntrinsicDemanded()
1348 if (SubUndef.countPopulation() == Ratio) in SimplifyDemandedVectorElts()
/external/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp659 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), SDLoc(N), in selectVSplatMaskL()
691 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), SDLoc(N), in selectVSplatMaskR()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPInt.h1651 unsigned countPopulation() const { in countPopulation() function
1653 return llvm::countPopulation(U.VAL); in countPopulation()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp96 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset()
/external/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp97 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset()

1234