/external/llvm-project/llvm/unittests/ADT/ |
D | APIntTest.cpp | 51 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/ |
D | KnownBits.h | 51 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/ |
D | Sanitizers.h | 62 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/ |
D | KnownBits.h | 51 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/ |
D | InstrBuilder.cpp | 101 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/ |
D | GCNRegBankReassign.cpp | 378 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()
|
D | SIAddIMGInit.cpp | 112 TII->isGather4(Opcode) ? 4 : countPopulation(dmask); in runOnMachineFunction()
|
/external/llvm-project/llvm/lib/MCA/HardwareUnits/ |
D | ResourceManager.cpp | 68 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/ |
D | ResourceManager.cpp | 68 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/ |
D | InstrBuilder.cpp | 101 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/ |
D | HexagonShuffler.h | 47 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
|
D | HexagonShuffler.cpp | 41 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/ |
D | HexagonShuffler.h | 55 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
|
/external/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
D | HexagonShuffler.h | 60 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | GCNRegBankReassign.cpp | 446 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()
|
D | SIAddIMGInit.cpp | 111 TII->isGather4(Opcode) ? 4 : countPopulation(dmask); in runOnMachineFunction()
|
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 46 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/ |
D | LaneBitmask.h | 76 return countPopulation(Mask); in getNumLanes()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
D | LaneBitmask.h | 76 return countPopulation(Mask); in getNumLanes()
|
/external/llvm/lib/DebugInfo/PDB/Raw/ |
D | PublicsStream.cpp | 123 NumBuckets += countPopulation(B); in reload()
|
/external/llvm-project/llvm/lib/MC/ |
D | MCSchedule.cpp | 142 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCSchedule.cpp | 142 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/HardwareUnits/ |
D | ResourceManager.h | 251 return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask); in getNumUnits()
|
/external/llvm-project/llvm/include/llvm/MCA/HardwareUnits/ |
D | ResourceManager.h | 250 return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask); in getNumUnits()
|
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
D | GlobalsStream.cpp | 160 NumBuckets += countPopulation(B); in readGSIHashBuckets()
|