| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 51 EXPECT_EQ(128u, Minus1.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() 128 EXPECT_EQ(0u, zero.countPopulation()); in TEST() 138 EXPECT_EQ(1u, one.countPopulation()); in TEST() 148 EXPECT_EQ(1u, s128.countPopulation()); in TEST() 159 EXPECT_EQ(1u, s128.countPopulation()); in TEST() 170 EXPECT_EQ(30u, s128.countPopulation()); in TEST() 193 EXPECT_EQ(4u, s256.countPopulation()); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/MCA/ |
| H A D | InstrBuilder.cpp | 104 unsigned popcntA = countPopulation(A.first); in initializeUsedResources() 105 unsigned popcntB = countPopulation(B.first); in initializeUsedResources() 116 return countPopulation(Elt.first) > 1; in initializeUsedResources() 125 assert(countPopulation(A.first) > 1 && "Expected a group!"); in initializeUsedResources() 132 if (countPopulation(A.first) == 1) { in initializeUsedResources() 141 countPopulation(AvailableMask) == 1) { in initializeUsedResources() 153 if (countPopulation(B.first) > 1) in initializeUsedResources() 171 assert(countPopulation(NormalizedMask) > 1); in initializeUsedResources() 176 countPopulation(AvailableMask) != 1) in initializeUsedResources() 205 uint64_t MaxResourceUnits = countPopulation(Mask); in initializeUsedResources() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 52 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant() 287 return One.countPopulation(); in countMinPopulation() 292 return getBitWidth() - Zero.countPopulation(); in countMaxPopulation()
|
| H A D | MathExtras.h | 567 inline unsigned countPopulation(T Value) { 584 MaskLen = countPopulation(Value); 597 MaskLen = countPopulation(Value);
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Sanitizers.cpp | 61 unsigned SanitizerMask::countPopulation() const { in countPopulation() function in clang::SanitizerMask 64 total += llvm::countPopulation(Val); in countPopulation()
|
| /llvm-project-15.0.7/llvm/lib/MCA/HardwareUnits/ |
| H A D | ResourceManager.cpp | 68 BufferSize(Desc.BufferSize), IsAGroup(countPopulation(ResourceMask) > 1) { in ResourceState() 82 countPopulation(ReadyMask) >= NumUnits; in isReady() 324 assert((countPopulation(R.first) > 1) && "Expected a group!"); in issueInstruction() 341 if (countPopulation(RR.first) == 1) in cycleEvent()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Sanitizers.h | 63 unsigned countPopulation() const; 71 return countPopulation() == 1; in isPowerOf2()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonShuffler.h | 60 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
|
| H A D | HexagonShuffler.cpp | 50 HexagonBid(unsigned B) { Bid = B ? MAX / countPopulation(B) : 0; } in HexagonBid() 102 unsigned Ctpop = countPopulation(Units); in setWeight()
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/ |
| H A D | LaneBitmask.h | 77 return countPopulation(Mask); in getNumLanes()
|
| H A D | SubtargetFeature.h | 101 Count += countPopulation(B); in count()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 293 if (Lo > 0 && TmpSeq.size() + countPopulation(Hi) < Res.size()) { in generateInstSeq() 295 } else if (Lo < 0 && TmpSeq.size() + countPopulation(~Hi) < Res.size()) { in generateInstSeq()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCSchedule.cpp | 142 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
|
| /llvm-project-15.0.7/llvm/include/llvm/MCA/HardwareUnits/ |
| H A D | ResourceManager.h | 250 return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask); in getNumUnits()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | GlobalsStream.cpp | 159 NumBuckets += countPopulation(B); in readGSIHashBuckets()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/grammar/ |
| H A D | LRTable.h | 227 llvm::countPopulation(HasValue[KeyWord] & BelowKeyMask); in get()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MemoryProfileInfo.cpp | 95 const unsigned NumAllocTypes = countPopulation(AllocTypes); in hasSingleAllocType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Math/IR/ |
| H A D | MathOps.cpp | 86 return APInt(a.getBitWidth(), a.countPopulation()); in fold()
|
| /llvm-project-15.0.7/llvm/lib/MCA/Stages/ |
| H A D | ExecuteStage.cpp | 277 SmallVector<unsigned, 4> BufferIDs(countPopulation(UsedBuffers), 0); in notifyReservedOrReleasedBuffers()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIRegisterInfo.h | 370 return countPopulation(Odd); in getNumCoveredRegs()
|
| H A D | AMDGPUInstCombineIntrinsic.cpp | 1157 DemandedElts &= (1 << countPopulation(DMaskVal)) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded() 1174 unsigned NewNumElts = DemandedElts.countPopulation(); in simplifyAMDGCNMemoryIntrinsicDemanded()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1571 unsigned countPopulation() const { in countPopulation() function 1573 return llvm::countPopulation(U.VAL); in countPopulation()
|
| H A D | SmallBitVector.h | 203 return countPopulation(Bits); in count()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 109 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset()
|
| /llvm-project-15.0.7/llvm/lib/Support/Windows/ |
| H A D | Threading.inc | 221 NewG.UsableThreads = countPopulation(ProcessAffinityMask);
|