Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DCGProfile.cpp27 MapVector<std::pair<Function *, Function *>, uint64_t> &Counts) { in addModuleFlags() argument
28 if (Counts.empty()) in addModuleFlags()
35 for (auto E : Counts) { in addModuleFlags()
51 MapVector<std::pair<Function *, Function *>, uint64_t> Counts; in runCGProfilePass() local
60 uint64_t &Count = Counts[std::make_pair(F, CalledF)]; in runCGProfilePass()
102 return addModuleFlags(M, Counts); in runCGProfilePass()
/openbsd/gnu/llvm/llvm/lib/Support/
H A DTrigramIndex.cpp73 Index[Tri].push_back(Counts.size()); in insert()
83 Counts.push_back(Cnt); in insert()
89 std::vector<unsigned> CurCounts(Counts.size()); in isDefinitelyOut()
102 if (CurCounts[J] >= Counts[J]) in isDefinitelyOut()
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp95 DenseMap<Function *, Scaled64> Counts; in run() local
98 M, [&](Function *F, uint64_t Count) { Counts[F] = Scaled64(Count, 0); }); in run()
117 BBCount *= Counts[Caller]; in run()
129 Counts[F] += New; in run()
133 for (auto Entry : Counts) { in run()
/openbsd/gnu/llvm/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.h56 std::vector<unsigned> Counts; variable
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/
H A DInstrProf.h731 std::vector<uint64_t> Counts; member
734 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord()
737 : Counts(RHS.Counts), in InstrProfRecord()
743 Counts = RHS.Counts;
808 Counts.clear(); in Clear()
837 uint64_t FirstCount = Counts[0]; in getCountPseudoKind()
846 Counts[0] = (uint64_t)HotFunctionVal; in setPseudoCount()
848 Counts[0] = (uint64_t)WarmFunctionVal; in setPseudoCount()
920 std::vector<uint64_t> Counts) in NamedInstrProfRecord()
921 : InstrProfRecord(std::move(Counts)), Name(Name), Hash(Hash) {} in NamedInstrProfRecord()
/openbsd/gnu/llvm/llvm/lib/ProfileData/
H A DInstrProf.cpp537 Sum.NumEntries += Counts.size(); in accumulateCounts()
538 for (uint64_t Count : Counts) in accumulateCounts()
610 bool Mismatch = (Counts.size() != Other.Counts.size()); in overlap()
635 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) { in overlap()
636 Score += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
638 MaxCount = std::max(Other.Counts[I], MaxCount); in overlap()
646 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
712 if (Counts.size() != Other.Counts.size()) { in merge()
738 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
743 Counts[I] = Value; in merge()
[all …]
H A DProfileSummaryBuilder.cpp102 addEntryCount(R.Counts[0]); in addRecord()
103 for (size_t I = 1, E = R.Counts.size(); I < E; ++I) in addRecord()
104 addInternalCount(R.Counts[I]); in addRecord()
H A DInstrProfReader.cpp384 Record.Counts.reserve(NumCounters); in readNextRecord()
391 Record.Counts.push_back(Count); in readNextRecord()
585 Record.Counts.clear(); in readRawCounts()
586 Record.Counts.reserve(NumCounters); in readRawCounts()
592 Record.Counts.push_back(*Ptr == 0 ? 1 : 0); in readRawCounts()
595 Record.Counts.push_back(swap(*CounterValue)); in readRawCounts()
1109 auto getFuncSum = [](const std::vector<uint64_t> &Counts) { in getInstrProfRecord() argument
1111 for (uint64_t CountValue : Counts) { in getInstrProfRecord()
1131 FuncSum = std::max(FuncSum, getFuncSum(I.Counts)); in getInstrProfRecord()
1181 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
[all …]
H A DInstrProfWriter.cpp132 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
158 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
159 for (uint64_t I : ProfRecord.Counts) in EmitData()
317 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) in shouldEncodeData()
607 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
609 for (uint64_t Count : Func.Counts) in writeRecordInText()
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp47 CountMap Counts; in tryToreplicateChunks() local
51 ++Counts[getChunk(UImm, Idx)]; in tryToreplicateChunks()
54 for (const auto &Chunk : Counts) { in tryToreplicateChunks()
/openbsd/gnu/llvm/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp246 std::vector<uint64_t> Counts; in loadFunctionRecord() local
248 Record.FunctionHash, Counts)) { in loadFunctionRecord()
256 Counts.assign(getMaxCounterID(Ctx, Record) + 1, 0); in loadFunctionRecord()
258 Ctx.setCounts(Counts); in loadFunctionRecord()
268 Record.MappingRegions[0].Count.isZero() && Counts[0] > 0) in loadFunctionRecord()
/openbsd/gnu/llvm/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp488 uint64_t CntNum = Record->Counts.size(); in InstrProfileEntry()
491 MaxCount = std::max(MaxCount, Record->Counts[I]); in InstrProfileEntry()
492 ZeroCntNum += !Record->Counts[I]; in InstrProfileEntry()
2432 if (llvm::any_of(Func.Counts, [](uint64_t C) { return C; })) in showInstrProfile()
2448 << " Counters: " << Func.Counts.size(); in showInstrProfile()
2459 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) { in showInstrProfile()
2460 FuncMax = std::max(FuncMax, Func.Counts[I]); in showInstrProfile()
2461 FuncSum += Func.Counts[I]; in showInstrProfile()
2492 << " Counters: " << Func.Counts.size() << "\n"; in showInstrProfile()
2494 OS << " Function count: " << Func.Counts[0] << "\n"; in showInstrProfile()
[all …]
/openbsd/gnu/llvm/llvm/docs/AMDGPU/
H A Dgfx11_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx7_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx10_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx9_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx90a_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx8_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx940_waitcnt.rst13 Counts of outstanding instructions to wait for.
H A Dgfx1030_waitcnt.rst13 Counts of outstanding instructions to wait for.
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2017 auto AddCount = [](auto &Counts, const auto &Val) { in LowerBUILD_VECTOR() argument
2019 llvm::find_if(Counts, [&Val](auto E) { return E.first == Val; }); in LowerBUILD_VECTOR()
2020 if (CountIt == Counts.end()) { in LowerBUILD_VECTOR()
2021 Counts.emplace_back(Val, 1); in LowerBUILD_VECTOR()
2027 auto GetMostCommon = [](auto &Counts) { in LowerBUILD_VECTOR() argument
2029 std::max_element(Counts.begin(), Counts.end(), llvm::less_second()); in LowerBUILD_VECTOR()
2030 assert(CommonIt != Counts.end() && "Unexpected all-undef build_vector"); in LowerBUILD_VECTOR()
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp1376 CMap Counts; in assignInits() local
1384 Counts.insert({*It, N}); in assignInits()
1387 if (Counts.empty()) in assignInits()
1391 auto BestIt = std::max_element(Counts.begin(), Counts.end(), in assignInits()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2325 OpInfoTy Counts, SharedCounts; in emitRemarks() local
2326 std::tie(Counts, SharedCounts) = in emitRemarks()
2333 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2334 << ore::NV("NumLoads", Counts.NumLoads) << " loads, " in emitRemarks()
2335 << ore::NV("NumComputeOps", Counts.NumComputeOps) in emitRemarks()
2337 << ore::NV("NumExposedTransposes", Counts.NumExposedTransposes) in emitRemarks()
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h333 void setCounts(ArrayRef<uint64_t> Counts) { CounterValues = Counts; } in setCounts() argument

12