Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DTrigramIndex.cpp72 Index[Tri].push_back(Counts.size()); in insert()
82 Counts.push_back(Cnt); in insert()
88 std::vector<unsigned> CurCounts(Counts.size()); in isDefinitelyOut()
101 if (CurCounts[J] >= Counts[J]) in isDefinitelyOut()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DCGProfile.cpp29 MapVector<std::pair<Function *, Function *>, uint64_t> &Counts) { in addModuleFlags() argument
30 if (Counts.empty()) in addModuleFlags()
37 for (auto E : Counts) { in addModuleFlags()
52 MapVector<std::pair<Function *, Function *>, uint64_t> Counts; in runCGProfilePass() local
59 uint64_t &Count = Counts[std::make_pair(F, CalledF)]; in runCGProfilePass()
101 return addModuleFlags(M, Counts); in runCGProfilePass()
H A DPGOInstrumentation.cpp1317 std::vector<uint64_t> &CountFromProfile = ProfileRecord.Counts; in readCounters()
1507 std::vector<uint64_t> &CountFromProfile = UseFunc->getProfileRecord().Counts; in annotateOneSelectInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp101 DenseMap<Function *, Scaled64> Counts; in run() local
104 M, [&](Function *F, uint64_t Count) { Counts[F] = Scaled64(Count, 0); }); in run()
123 BBCount *= Counts[Caller]; in run()
135 Counts[F] += New; in run()
139 for (auto Entry : Counts) { in run()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DTrailingObjects.h315 TrailingTys, size_t>::type... Counts) { in additionalSizeToAlloc()
316 return ParentType::additionalSizeToAllocImpl(0, Counts...); in additionalSizeToAlloc()
327 TrailingTys, size_t>::type... Counts) { in totalSizeToAlloc()
328 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...); in totalSizeToAlloc()
353 template <size_t... Counts> struct with_counts {
354 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
H A DTrigramIndex.h57 std::vector<unsigned> Counts; variable
/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp506 Sum.NumEntries += Counts.size(); in accumulateCounts()
507 for (size_t F = 0, E = Counts.size(); F < E; ++F) in accumulateCounts()
508 FuncSum += Counts[F]; in accumulateCounts()
579 bool Mismatch = (Counts.size() != Other.Counts.size()); in overlap()
605 Score += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
607 MaxCount = std::max(Other.Counts[I], MaxCount); in overlap()
615 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
682 if (Counts.size() != Other.Counts.size()) { in merge()
689 Counts[I] = in merge()
690 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
[all …]
H A DProfileSummaryBuilder.cpp100 addEntryCount(R.Counts[0]); in addRecord()
101 for (size_t I = 1, E = R.Counts.size(); I < E; ++I) in addRecord()
102 addInternalCount(R.Counts[I]); in addRecord()
H A DInstrProfWriter.cpp126 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
152 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
153 for (uint64_t I : ProfRecord.Counts) in EmitData()
265 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) in shouldEncodeData()
437 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
439 for (uint64_t Count : Func.Counts) in writeRecordInText()
H A DInstrProfReader.cpp284 Record.Counts.reserve(NumCounters); in readNextRecord()
291 Record.Counts.push_back(Count); in readNextRecord()
448 Record.Counts.clear(); in readRawCounts()
449 Record.Counts.reserve(RawCounts.size()); in readRawCounts()
451 Record.Counts.push_back(swap(Count)); in readRawCounts()
453 Record.Counts = RawCounts; in readRawCounts()
930 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
935 Counts = Record.get().Counts; in getFunctionCounts()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h692 std::vector<uint64_t> Counts; member
695 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord()
698 : Counts(RHS.Counts), in InstrProfRecord()
704 Counts = RHS.Counts;
769 Counts.clear(); in Clear()
857 std::vector<uint64_t> Counts) in NamedInstrProfRecord()
858 : InstrProfRecord(std::move(Counts)), Name(Name), Hash(Hash) {} in NamedInstrProfRecord()
H A DInstrProfReader.h515 std::vector<uint64_t> &Counts);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp47 CountMap Counts; in tryToreplicateChunks() local
51 ++Counts[getChunk(UImm, Idx)]; in tryToreplicateChunks()
54 for (CountMap::const_iterator Chunk = Counts.begin(), End = Counts.end(); in tryToreplicateChunks()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp412 uint64_t CntNum = Record->Counts.size(); in InstrProfileEntry()
415 MaxCount = std::max(MaxCount, Record->Counts[I]); in InstrProfileEntry()
416 ZeroCntNum += !Record->Counts[I]; in InstrProfileEntry()
437 for (size_t I = 0; I < ProfRecord->Counts.size(); ++I) in updateInstrProfileEntry()
438 ProfRecord->Counts[I] = -1; in updateInstrProfileEntry()
2132 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) { in showInstrProfile()
2133 if (Func.Counts[I] == (uint64_t)-1) in showInstrProfile()
2135 FuncMax = std::max(FuncMax, Func.Counts[I]); in showInstrProfile()
2136 FuncSum += Func.Counts[I]; in showInstrProfile()
2167 << " Counters: " << Func.Counts.size() << "\n"; in showInstrProfile()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp245 std::vector<uint64_t> Counts; in loadFunctionRecord() local
247 Record.FunctionHash, Counts)) { in loadFunctionRecord()
255 Counts.assign(getMaxCounterID(Ctx, Record) + 1, 0); in loadFunctionRecord()
257 Ctx.setCounts(Counts); in loadFunctionRecord()
267 Record.MappingRegions[0].Count.isZero() && Counts[0] > 0) in loadFunctionRecord()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp1848 auto AddCount = [](auto &Counts, const auto &Val) { in LowerBUILD_VECTOR() argument
1850 llvm::find_if(Counts, [&Val](auto E) { return E.first == Val; }); in LowerBUILD_VECTOR()
1851 if (CountIt == Counts.end()) { in LowerBUILD_VECTOR()
1852 Counts.emplace_back(Val, 1); in LowerBUILD_VECTOR()
1858 auto GetMostCommon = [](auto &Counts) { in LowerBUILD_VECTOR() argument
1860 std::max_element(Counts.begin(), Counts.end(), in LowerBUILD_VECTOR()
1862 assert(CommonIt != Counts.end() && "Unexpected all-undef build_vector"); in LowerBUILD_VECTOR()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2193 OpInfoTy Counts, SharedCounts; in emitRemarks() local
2194 std::tie(Counts, SharedCounts) = in emitRemarks()
2201 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2202 << ore::NV("NumLoads", Counts.NumLoads) << " loads, " in emitRemarks()
2203 << ore::NV("NumComputeOps", Counts.NumComputeOps) in emitRemarks()
2205 << ore::NV("NumExposedTransposes", Counts.NumExposedTransposes) in emitRemarks()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp1374 CMap Counts; in assignInits() local
1382 Counts.insert({*It, N}); in assignInits()
1385 if (Counts.empty()) in assignInits()
1389 auto BestIt = std::max_element(Counts.begin(), Counts.end(), in assignInits()
/freebsd-13.1/contrib/bsnmp/tests/
H A Dcatch.hpp2403 struct Counts;
2787 struct Counts { struct
2788 Counts operator - ( Counts const& other ) const;
2789 Counts& operator += ( Counts const& other );
2808 Counts assertions;
2809 Counts testCases;
5490 Counts assertions;
12703 Counts assertions; in handleFatalErrorCondition()
14956 Counts Counts::operator - ( Counts const& other ) const { in operator -()
14957 Counts diff; in operator -()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h329 void setCounts(ArrayRef<uint64_t> Counts) { CounterValues = Counts; } in setCounts() argument
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1040 RegionCounts = ProfRecord->Counts; in loadRegionCounts()
H A DCGOpenMPRuntime.cpp7341 MapNonContiguousArrayTy Counts; member
7365 NonContigInfo.Counts.append(CurInfo.NonContigInfo.Counts.begin(), in append()
7366 CurInfo.NonContigInfo.Counts.end()); in append()
8387 CombinedInfo.NonContigInfo.Counts.push_back(CurCounts); in generateInfoForComponentList()
9420 CGF.EmitStoreOfScalar(NonContigInfo.Counts[L][RevIdx], CountLVal); in emitNonContiguousDescriptor()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp2236 for (auto &Counts : FrameEscapeInfo) { in verifyFrameRecoverIndices() local
2237 Function *F = Counts.first; in verifyFrameRecoverIndices()
2238 unsigned EscapedObjectCount = Counts.second.first; in verifyFrameRecoverIndices()
2239 unsigned MaxRecoveredIndex = Counts.second.second; in verifyFrameRecoverIndices()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td2119 // Population count. Counts bits set per byte or doubleword.
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrAVX512.td10729 // Counts number of ones - VPOPCNTD and VPOPCNTQ