Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DCGProfile.cpp26 MapVector<std::pair<Function *, Function *>, uint64_t> &Counts) { in addModuleFlags() argument
27 if (Counts.empty()) in addModuleFlags()
34 for (auto E : Counts) { in addModuleFlags()
49 MapVector<std::pair<Function *, Function *>, uint64_t> Counts; in runCGProfilePass() local
58 uint64_t &Count = Counts[std::make_pair(F, CalledF)]; in runCGProfilePass()
98 return addModuleFlags(M, Counts); in runCGProfilePass()
H A DPGOInstrumentation.cpp1333 std::vector<uint64_t> &CountFromProfile = ProfileRecord.Counts; in readCounters()
1375 std::vector<uint64_t> &CountsFromProfile = Result.get().Counts; in populateCoverage()
1643 std::vector<uint64_t> &CountFromProfile = UseFunc->getProfileRecord().Counts; in annotateOneSelectInst()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h694 std::vector<uint64_t> Counts; member
698 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord()
699 InstrProfRecord(std::vector<uint64_t> Counts, in InstrProfRecord()
701 : Counts(std::move(Counts)), BitmapBytes(std::move(BitmapBytes)) {} in InstrProfRecord()
704 : Counts(RHS.Counts), BitmapBytes(RHS.BitmapBytes), in InstrProfRecord()
710 Counts = RHS.Counts;
776 Counts.clear(); in Clear()
805 uint64_t FirstCount = Counts[0]; in getCountPseudoKind()
814 Counts[0] = (uint64_t)HotFunctionVal; in setPseudoCount()
816 Counts[0] = (uint64_t)WarmFunctionVal; in setPseudoCount()
[all …]
H A DInstrProfReader.h737 std::vector<uint64_t> &Counts);
/freebsd-14.2/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...) };
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCountVisits.cpp20 uint32_t Count = Counts[F.getName()] + 1; in run()
21 Counts[F.getName()] = Count; in run()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp631 Sum.NumEntries += Counts.size(); in accumulateCounts()
632 for (uint64_t Count : Counts) in accumulateCounts()
704 bool Mismatch = (Counts.size() != Other.Counts.size()); in overlap()
729 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) { in overlap()
730 Score += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
732 MaxCount = std::max(Other.Counts[I], MaxCount); in overlap()
740 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
806 if (Counts.size() != Other.Counts.size()) { in merge()
832 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
837 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.cpp420 Record.Counts.reserve(NumCounters); in readNextRecord()
427 Record.Counts.push_back(Count); in readNextRecord()
677 Record.Counts.clear(); in readRawCounts()
678 Record.Counts.reserve(NumCounters); in readRawCounts()
701 Record.Counts.push_back(*Ptr == 0 ? 1 : 0); in readRawCounts()
708 Record.Counts.push_back(CounterValue); in readRawCounts()
1357 auto getFuncSum = [](const std::vector<uint64_t> &Counts) { in getInstrProfRecord() argument
1359 for (uint64_t CountValue : Counts) { in getInstrProfRecord()
1379 FuncSum = std::max(FuncSum, getFuncSum(I.Counts)); in getInstrProfRecord()
1429 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
[all …]
H A DInstrProfWriter.cpp134 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
162 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
163 for (uint64_t I : ProfRecord.Counts) in EmitData()
387 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) in shouldEncodeData()
716 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
718 for (uint64_t Count : Func.Counts) in writeRecordInText()
/freebsd-14.2/sys/contrib/device-tree/Bindings/arm/
H A Dqcom,coresight-tpdm.yaml13 Basic Counts (BC), Tenure Counts (TC), Continuous Multi-Bit (CMB), and Discrete
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCountVisits.h23 StringMap<uint32_t> Counts;
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp961 uint64_t CntNum = Record->Counts.size(); in InstrProfileEntry()
964 MaxCount = std::max(MaxCount, Record->Counts[I]); in InstrProfileEntry()
965 ZeroCntNum += !Record->Counts[I]; in InstrProfileEntry()
2752 if (llvm::any_of(Func.Counts, [](uint64_t C) { return C; })) in showInstrProfile()
2768 << " Counters: " << Func.Counts.size(); in showInstrProfile()
2779 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) { in showInstrProfile()
2780 FuncMax = std::max(FuncMax, Func.Counts[I]); in showInstrProfile()
2781 FuncSum += Func.Counts[I]; in showInstrProfile()
2812 << " Counters: " << Func.Counts.size() << "\n"; in showInstrProfile()
2814 OS << " Function count: " << Func.Counts[0] << "\n"; in showInstrProfile()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp756 std::vector<uint64_t> Counts; in loadFunctionRecord() local
758 Record.FunctionHash, Counts)) { in loadFunctionRecord()
767 Counts.assign(getMaxCounterID(Ctx, Record) + 1, 0); in loadFunctionRecord()
769 Ctx.setCounts(Counts); in loadFunctionRecord()
794 Record.MappingRegions[0].Count.isZero() && Counts[0] > 0) in loadFunctionRecord()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h1693 MapNonContiguousArrayTy Counts; member
1718 NonContigInfo.Counts.append(CurInfo.NonContigInfo.Counts.begin(), in append()
1719 CurInfo.NonContigInfo.Counts.end()); in append()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2108 auto AddCount = [](auto &Counts, const auto &Val) { in LowerBUILD_VECTOR() argument
2110 llvm::find_if(Counts, [&Val](auto E) { return E.first == Val; }); in LowerBUILD_VECTOR()
2111 if (CountIt == Counts.end()) { in LowerBUILD_VECTOR()
2112 Counts.emplace_back(Val, 1); in LowerBUILD_VECTOR()
2118 auto GetMostCommon = [](auto &Counts) { in LowerBUILD_VECTOR() argument
2120 std::max_element(Counts.begin(), Counts.end(), llvm::less_second()); in LowerBUILD_VECTOR()
2121 assert(CommonIt != Counts.end() && "Unexpected all-undef build_vector"); in LowerBUILD_VECTOR()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2479 OpInfoTy Counts, SharedCounts; in emitRemarks() local
2480 std::tie(Counts, SharedCounts) = in emitRemarks()
2487 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2488 << ore::NV("NumLoads", Counts.NumLoads) << " loads, " in emitRemarks()
2489 << ore::NV("NumComputeOps", Counts.NumComputeOps) in emitRemarks()
2491 << ore::NV("NumExposedTransposes", Counts.NumExposedTransposes) in emitRemarks()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h572 void setCounts(ArrayRef<uint64_t> Counts) { CounterValues = Counts; } in setCounts() argument
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1296 RegionCounts = ProfRecord->Counts; in loadRegionCounts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp2546 for (auto &Counts : FrameEscapeInfo) { in verifyFrameRecoverIndices() local
2547 Function *F = Counts.first; in verifyFrameRecoverIndices()
2548 unsigned EscapedObjectCount = Counts.second.first; in verifyFrameRecoverIndices()
2549 unsigned MaxRecoveredIndex = Counts.second.second; in verifyFrameRecoverIndices()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td2074 // Population count. Counts bits set per byte or doubleword.

12