Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/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()
50 MapVector<std::pair<Function *, Function *>, uint64_t> Counts; in runCGProfilePass() local
59 uint64_t &Count = Counts[std::make_pair(F, CalledF)]; in runCGProfilePass()
94 return addModuleFlags(M, Counts); in runCGProfilePass()
H A DPGOInstrumentation.cpp1387 std::vector<uint64_t> &CountFromProfile = ProfileRecord.Counts; in readCounters()
1430 std::vector<uint64_t> &CountsFromProfile = Result.get().Counts; in populateCoverage()
1703 std::vector<uint64_t> &CountFromProfile = UseFunc->getProfileRecord().Counts; in annotateOneSelectInst()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h824 std::vector<uint64_t> Counts; member
828 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord()
829 InstrProfRecord(std::vector<uint64_t> Counts, in InstrProfRecord()
831 : Counts(std::move(Counts)), BitmapBytes(std::move(BitmapBytes)) {} in InstrProfRecord()
834 : Counts(RHS.Counts), BitmapBytes(RHS.BitmapBytes), in InstrProfRecord()
840 Counts = RHS.Counts;
893 Counts.clear(); in Clear()
922 uint64_t FirstCount = Counts[0]; in getCountPseudoKind()
931 Counts[0] = (uint64_t)HotFunctionVal; in setPseudoCount()
933 Counts[0] = (uint64_t)WarmFunctionVal; in setPseudoCount()
[all …]
H A DInstrProfReader.h778 std::vector<uint64_t> &Counts);
/freebsd/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...) };
314 additionalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType<TrailingTys,size_t>::type...Counts) additionalSizeToAlloc() argument
326 totalSizeToAlloc(typename trailing_objects_internal::ExtractSecondType<TrailingTys,size_t>::type...Counts) totalSizeToAlloc() argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCountVisits.cpp21 uint32_t Count = Counts[F.getName()] + 1; in run()
22 Counts[F.getName()] = Count; in run()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp729 Sum.NumEntries += Counts.size(); in accumulateCounts()
730 for (uint64_t Count : Counts) in accumulateCounts()
800 bool Mismatch = (Counts.size() != Other.Counts.size()); in overlap()
825 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) { in overlap()
826 Score += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
828 MaxCount = std::max(Other.Counts[I], MaxCount); in overlap()
835 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) in overlap()
836 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
840 FuncLevelOverlap.Overlap.NumEntries = Other.Counts.size(); in overlap()
909 if (Counts.size() != Other.Counts.size()) { 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.cpp425 Record.Counts.reserve(NumCounters); in readNextRecord()
432 Record.Counts.push_back(Count); in readNextRecord()
716 Record.Counts.clear(); in readRawCounts()
717 Record.Counts.reserve(NumCounters); in readRawCounts()
740 Record.Counts.push_back(*Ptr == 0 ? 1 : 0); in readRawCounts()
747 Record.Counts.push_back(CounterValue); in readRawCounts()
1507 auto getFuncSum = [](ArrayRef<uint64_t> Counts) { in getInstrProfRecord() argument
1509 for (uint64_t CountValue : Counts) { in getInstrProfRecord()
1529 FuncSum = std::max(FuncSum, getFuncSum(I.Counts)); in getInstrProfRecord()
1643 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
[all …]
H A DInstrProfWriter.cpp136 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
164 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
165 for (uint64_t I : ProfRecord.Counts) in EmitData()
417 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) in shouldEncodeData()
1058 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
1060 for (uint64_t Count : Func.Counts) in writeRecordInText()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCountVisits.h23 StringMap<uint32_t> Counts;
/freebsd/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 (const auto &Chunk : Counts) { in tryToreplicateChunks()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp1019 uint64_t CntNum = Record->Counts.size(); in InstrProfileEntry()
1022 MaxCount = std::max(MaxCount, Record->Counts[I]); in InstrProfileEntry()
1023 ZeroCntNum += !Record->Counts[I]; in InstrProfileEntry()
2807 assert(Func.Counts.size() > 0 && "function missing entry counter"); in showInstrProfile()
2811 if (llvm::any_of(Func.Counts, [](uint64_t C) { return C; })) in showInstrProfile()
2827 << " Counters: " << Func.Counts.size(); in showInstrProfile()
2838 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) { in showInstrProfile()
2839 FuncMax = std::max(FuncMax, Func.Counts[I]); in showInstrProfile()
2840 FuncSum += Func.Counts[I]; in showInstrProfile()
2871 << " Counters: " << Func.Counts.size() << "\n"; in showInstrProfile()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp813 std::vector<uint64_t> Counts; in loadFunctionRecord() local
815 Record.FunctionHash, Counts)) { in loadFunctionRecord()
824 Counts.assign(getMaxCounterID(Ctx, Record) + 1, 0); in loadFunctionRecord()
826 Ctx.setCounts(Counts); in loadFunctionRecord()
854 Record.MappingRegions[0].Count.isZero() && Counts[0] > 0) in loadFunctionRecord()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h2271 MapNonContiguousArrayTy Counts; member
2296 NonContigInfo.Counts.append(CurInfo.NonContigInfo.Counts.begin(), in append()
2297 CurInfo.NonContigInfo.Counts.end()); in append()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2125 auto AddCount = [](auto &Counts, const auto &Val) { in LowerBUILD_VECTOR() argument
2127 llvm::find_if(Counts, [&Val](auto E) { return E.first == Val; }); in LowerBUILD_VECTOR()
2128 if (CountIt == Counts.end()) { in LowerBUILD_VECTOR()
2129 Counts.emplace_back(Val, 1); in LowerBUILD_VECTOR()
2135 auto GetMostCommon = [](auto &Counts) { in LowerBUILD_VECTOR() argument
2137 std::max_element(Counts.begin(), Counts.end(), llvm::less_second()); in LowerBUILD_VECTOR()
2138 assert(CommonIt != Counts.end() && "Unexpected all-undef build_vector"); in LowerBUILD_VECTOR()
/freebsd/contrib/bsnmp/tests/
H A Dcatch.hpp2403 struct Counts;
2421 Counts& assertions ) = 0;
2787 struct Counts { struct
2788 Counts operator - ( Counts const& other ) const;
2789 Counts& operator += ( Counts const& other );
2808 Counts assertions;
2809 Counts testCases;
2836 Counts prevAssertions;
2881 Counts m_assertions;
5480 Counts const& _assertions,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2577 OpInfoTy Counts, SharedCounts; in emitRemarks() local
2578 std::tie(Counts, SharedCounts) = in emitRemarks()
2585 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2586 << ore::NV("NumLoads", Counts.NumLoads) << " loads, " in emitRemarks()
2587 << ore::NV("NumComputeOps", Counts.NumComputeOps) in emitRemarks()
2589 << ore::NV("NumExposedTransposes", Counts.NumExposedTransposes) in emitRemarks()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp1380 CMap Counts; in assignInits() local
1388 Counts.insert({*It, N}); in assignInits()
1391 if (Counts.empty()) in assignInits()
1396 Counts, [](const CMap::value_type &A, const CMap::value_type &B) { in assignInits()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h666 void setCounts(ArrayRef<uint64_t> Counts) { CounterValues = Counts; } in setCounts() argument
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1426 RegionCounts = ProfRecord->Counts; in loadRegionCounts()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp2670 for (auto &Counts : FrameEscapeInfo) { in verifyFrameRecoverIndices() local
2671 Function *F = Counts.first; in verifyFrameRecoverIndices()
2672 unsigned EscapedObjectCount = Counts.second.first; in verifyFrameRecoverIndices()
2673 unsigned MaxRecoveredIndex = Counts.second.second; in verifyFrameRecoverIndices()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td2085 // Population count. Counts bits set per byte or doubleword.
/freebsd/contrib/one-true-awk/testdir/
H A Dfunstack.ok1961 R. A. Freiburghouse Register Allocation via Usage Counts . . 638--642

12