Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp51 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 DInstrBuilder.cpp104 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 DKnownBits.h52 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant()
287 return One.countPopulation(); in countMinPopulation()
292 return getBitWidth() - Zero.countPopulation(); in countMaxPopulation()
H A DMathExtras.h567 inline unsigned countPopulation(T Value) {
584 MaskLen = countPopulation(Value);
597 MaskLen = countPopulation(Value);
/llvm-project-15.0.7/clang/lib/Basic/
H A DSanitizers.cpp61 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 DResourceManager.cpp68 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 DSanitizers.h63 unsigned countPopulation() const;
71 return countPopulation() == 1; in isPowerOf2()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonShuffler.h60 return (countPopulation(A.getUnits()) < countPopulation(B.getUnits())); in lessUnits()
H A DHexagonShuffler.cpp50 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 DLaneBitmask.h77 return countPopulation(Mask); in getNumLanes()
H A DSubtargetFeature.h101 Count += countPopulation(B); in count()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp293 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 DMCSchedule.cpp142 double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles(); in getReciprocalThroughput()
/llvm-project-15.0.7/llvm/include/llvm/MCA/HardwareUnits/
H A DResourceManager.h250 return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask); in getNumUnits()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DGlobalsStream.cpp159 NumBuckets += countPopulation(B); in readGSIHashBuckets()
/llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/grammar/
H A DLRTable.h227 llvm::countPopulation(HasValue[KeyWord] & BelowKeyMask); in get()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp95 const unsigned NumAllocTypes = countPopulation(AllocTypes); in hasSingleAllocType()
/llvm-project-15.0.7/mlir/lib/Dialect/Math/IR/
H A DMathOps.cpp86 return APInt(a.getBitWidth(), a.countPopulation()); in fold()
/llvm-project-15.0.7/llvm/lib/MCA/Stages/
H A DExecuteStage.cpp277 SmallVector<unsigned, 4> BufferIDs(countPopulation(UsedBuffers), 0); in notifyReservedOrReleasedBuffers()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIRegisterInfo.h370 return countPopulation(Odd); in getNumCoveredRegs()
H A DAMDGPUInstCombineIntrinsic.cpp1157 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 DAPInt.h1571 unsigned countPopulation() const { in countPopulation() function
1573 return llvm::countPopulation(U.VAL); in countPopulation()
H A DSmallBitVector.h203 return countPopulation(Bits); in count()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZSelectionDAGInfo.cpp109 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset()
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DThreading.inc221 NewG.UsableThreads = countPopulation(ProcessAffinityMask);

123