Home
last modified time | relevance | path

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

1234567

/external/llvm-project/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-10.0/llvm/include/llvm/Support/
DKnownBits.h51 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant()
212 return One.countPopulation(); in countMinPopulation()
217 return getBitWidth() - Zero.countPopulation(); in countMaxPopulation()
/external/llvm-project/clang/include/clang/Basic/
DSanitizers.h62 unsigned countPopulation() const { in countPopulation() function
65 total += llvm::countPopulation(Val); in countPopulation()
75 return countPopulation() == 1; in isPowerOf2()
/external/llvm-project/llvm/include/llvm/Support/
DKnownBits.h51 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant()
249 return One.countPopulation(); in countMinPopulation()
254 return getBitWidth() - Zero.countPopulation(); in countMaxPopulation()
/external/llvm-project/llvm/lib/MCA/
DInstrBuilder.cpp101 unsigned popcntA = countPopulation(A.first); in initializeUsedResources()
102 unsigned popcntB = countPopulation(B.first); in initializeUsedResources()
117 assert(countPopulation(A.first) > 1 && "Expected a group!"); in initializeUsedResources()
124 if (countPopulation(A.first) == 1) { in initializeUsedResources()
136 if (countPopulation(B.first) > 1) in initializeUsedResources()
160 if (countPopulation(RPC.first) > 1 && !RPC.second.isReserved()) { in initializeUsedResources()
163 uint64_t MaxResourceUnits = countPopulation(Mask); in initializeUsedResources()
164 if (RPC.second.NumUnits > countPopulation(Mask)) { in initializeUsedResources()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DGCNRegBankReassign.cpp378 if (countPopulation(LM) >= NUM_VGPR_BANKS) in analyzeInst()
383 if (countPopulation(LM) / 2 >= NUM_SGPR_BANKS) in analyzeInst()
393 StallCycles += countPopulation(UsedBanks & Mask); in analyzeInst()
420 return countPopulation(Defs); in getOperandGatherWeight()
455 unsigned Size = countPopulation(Mask); in getFreeBanks()
546 unsigned Size1 = countPopulation(Mask1); in collectCandidates()
547 unsigned Size2 = countPopulation(Mask2); in collectCandidates()
DSIAddIMGInit.cpp112 TII->isGather4(Opcode) ? 4 : countPopulation(dmask); in runOnMachineFunction()
/external/llvm-project/llvm/lib/MCA/HardwareUnits/
DResourceManager.cpp68 BufferSize(Desc.BufferSize), IsAGroup(countPopulation(ResourceMask) > 1) { in ResourceState()
82 countPopulation(ReadyMask) >= NumUnits; in isReady()
315 assert((countPopulation(R.first) > 1) && "Expected a group!"); in issueInstruction()
332 if (countPopulation(RR.first) == 1) in cycleEvent()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/HardwareUnits/
DResourceManager.cpp68 BufferSize(Desc.BufferSize), IsAGroup(countPopulation(ResourceMask) > 1) { in ResourceState()
82 countPopulation(ReadyMask) >= NumUnits; in isReady()
315 assert((countPopulation(R.first) > 1) && "Expected a group!"); in issueInstruction()
332 if (countPopulation(RR.first) == 1) in cycleEvent()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/
DInstrBuilder.cpp101 unsigned popcntA = countPopulation(A.first); in initializeUsedResources()
102 unsigned popcntB = countPopulation(B.first); in initializeUsedResources()
117 assert(countPopulation(A.first) > 1 && "Expected a group!"); in initializeUsedResources()
124 if (countPopulation(A.first) == 1) { in initializeUsedResources()
136 if (countPopulation(B.first) > 1) in initializeUsedResources()
160 if (countPopulation(RPC.first) > 1 && !RPC.second.isReserved()) { in initializeUsedResources()
/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-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h55 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
/external/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h60 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DGCNRegBankReassign.cpp446 StallCycles += countPopulation(UsedBanks & Mask); in analyzeInst()
473 return countPopulation(Defs); in getOperandGatherWeight()
517 unsigned Size = countPopulation(Mask); in getFreeBanks()
608 unsigned Size1 = countPopulation(Mask1); in collectCandidates()
609 unsigned Size2 = countPopulation(Mask2); in collectCandidates()
DSIAddIMGInit.cpp111 TII->isGather4(Opcode) ? 4 : countPopulation(dmask); in runOnMachineFunction()
/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-project/llvm/include/llvm/MC/
DLaneBitmask.h76 return countPopulation(Mask); in getNumLanes()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DLaneBitmask.h76 return countPopulation(Mask); in getNumLanes()
/external/llvm/lib/DebugInfo/PDB/Raw/
DPublicsStream.cpp123 NumBuckets += countPopulation(B); in reload()
/external/llvm-project/llvm/lib/MC/
DMCSchedule.cpp142 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCSchedule.cpp142 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/HardwareUnits/
DResourceManager.h251 return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask); in getNumUnits()
/external/llvm-project/llvm/include/llvm/MCA/HardwareUnits/
DResourceManager.h250 return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask); in getNumUnits()
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DGlobalsStream.cpp160 NumBuckets += countPopulation(B); in readGSIHashBuckets()

1234567