Home
last modified time | relevance | path

Searched refs:Counts (Results 1 – 25 of 28) 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.cpp1473 std::vector<uint64_t> &CountFromProfile = ProfileRecord.Counts; in readCounters()
1507 ArrayRef<uint64_t> CountsFromProfile = ProfileRecord.Counts; in populateCoverage()
1785 std::vector<uint64_t> &CountFromProfile = UseFunc->getProfileRecord().Counts; in annotateOneSelectInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h886 std::vector<uint64_t> Counts; member
890 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord()
891 InstrProfRecord(std::vector<uint64_t> Counts, in InstrProfRecord()
893 : Counts(std::move(Counts)), BitmapBytes(std::move(BitmapBytes)) {} in InstrProfRecord()
896 : Counts(RHS.Counts), BitmapBytes(RHS.BitmapBytes), in InstrProfRecord()
902 Counts = RHS.Counts;
956 Counts.clear(); in Clear()
985 uint64_t FirstCount = Counts[0]; in getCountPseudoKind()
994 Counts[0] = (uint64_t)HotFunctionVal; in setPseudoCount()
996 Counts[0] = (uint64_t)WarmFunctionVal; in setPseudoCount()
[all …]
H A DInstrProfReader.h849 std::vector<uint64_t> &Counts);
/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/include/llvm/Support/
H A DTrailingObjects.h387 TrailingTys, size_t>::type... Counts) { in additionalSizeToAlloc()
388 return ParentType::additionalSizeToAllocImpl(0, Counts...); in additionalSizeToAlloc()
399 TrailingTys, size_t>::type... Counts) { in totalSizeToAlloc()
400 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...); in totalSizeToAlloc()
425 template <size_t... Counts> struct with_counts {
426 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp781 Sum.NumEntries += Counts.size(); in accumulateCounts()
782 for (uint64_t Count : Counts) in accumulateCounts()
852 bool Mismatch = (Counts.size() != Other.Counts.size()); in overlap()
877 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) { in overlap()
878 Score += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
880 MaxCount = std::max(Other.Counts[I], MaxCount); in overlap()
887 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) in overlap()
888 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I], in overlap()
892 FuncLevelOverlap.Overlap.NumEntries = Other.Counts.size(); in overlap()
961 if (Counts.size() != Other.Counts.size()) { in merge()
[all …]
H A DProfileSummaryBuilder.cpp111 addEntryCount(R.Counts[0]); in addRecord()
112 for (size_t I = 1, E = R.Counts.size(); I < E; ++I) in addRecord()
113 addInternalCount(R.Counts[I]); in addRecord()
H A DInstrProfReader.cpp437 Record.Counts.reserve(NumCounters); in readNextRecord()
444 Record.Counts.push_back(Count); in readNextRecord()
749 Record.Counts.clear(); in readRawCounts()
750 Record.Counts.reserve(NumCounters); in readRawCounts()
773 Record.Counts.push_back(*Ptr == 0 ? 1 : 0); in readRawCounts()
780 Record.Counts.push_back(CounterValue); in readRawCounts()
1397 auto getFuncSum = [](ArrayRef<uint64_t> Counts) { in getInstrProfRecord() argument
1399 for (uint64_t CountValue : Counts) { in getInstrProfRecord()
1419 FuncSum = std::max(FuncSum, getFuncSum(I.Counts)); in getInstrProfRecord()
1574 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
[all …]
H A DInstrProfWriter.cpp76 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
104 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
105 for (uint64_t I : ProfRecord.Counts) in EmitData()
429 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) in shouldEncodeData()
742 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
744 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.cpp1107 uint64_t CntNum = Record->Counts.size(); in InstrProfileEntry()
1110 MaxCount = std::max(MaxCount, Record->Counts[I]); in InstrProfileEntry()
1111 ZeroCntNum += !Record->Counts[I]; in InstrProfileEntry()
2903 assert(Func.Counts.size() > 0 && "function missing entry counter"); in showInstrProfile()
2907 if (llvm::any_of(Func.Counts, [](uint64_t C) { return C; })) in showInstrProfile()
2923 << " Counters: " << Func.Counts.size(); in showInstrProfile()
2934 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) { in showInstrProfile()
2935 FuncMax = std::max(FuncMax, Func.Counts[I]); in showInstrProfile()
2936 FuncSum += Func.Counts[I]; in showInstrProfile()
2967 << " Counters: " << Func.Counts.size() << "\n"; in showInstrProfile()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp840 std::vector<uint64_t> Counts; in loadFunctionRecord() local
843 Record.FunctionName, Record.FunctionHash, Counts)) { in loadFunctionRecord()
852 Counts.assign(getMaxCounterID(Ctx, Record) + 1, 0); in loadFunctionRecord()
855 Counts.assign(getMaxCounterID(Ctx, Record) + 1, 0); in loadFunctionRecord()
857 Ctx.setCounts(Counts); in loadFunctionRecord()
890 Record.MappingRegions[0].Count.isZero() && Counts[0] > 0) in loadFunctionRecord()
/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/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h2430 MapNonContiguousArrayTy Counts; member
2455 NonContigInfo.Counts.append(CurInfo.NonContigInfo.Counts.begin(), in append()
2456 CurInfo.NonContigInfo.Counts.end()); in append()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2782 OpInfoTy Counts, SharedCounts; in emitRemarks() local
2783 std::tie(Counts, SharedCounts) = in emitRemarks()
2790 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2791 << ore::NV("NumLoads", Counts.NumLoads) << " loads, " in emitRemarks()
2792 << ore::NV("NumComputeOps", Counts.NumComputeOps) in emitRemarks()
2794 << ore::NV("NumExposedTransposes", Counts.NumExposedTransposes) in emitRemarks()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp1361 CMap Counts; in assignInits() local
1369 Counts.insert({*It, N}); in assignInits()
1372 if (Counts.empty()) in assignInits()
1377 Counts, [](const CMap::value_type &A, const CMap::value_type &B) { in assignInits()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2527 auto AddCount = [](auto &Counts, const auto &Val) { in LowerBUILD_VECTOR() argument
2529 llvm::find_if(Counts, [&Val](auto E) { return E.first == Val; }); in LowerBUILD_VECTOR()
2530 if (CountIt == Counts.end()) { in LowerBUILD_VECTOR()
2531 Counts.emplace_back(Val, 1); in LowerBUILD_VECTOR()
2537 auto GetMostCommon = [](auto &Counts) { in LowerBUILD_VECTOR() argument
2538 auto CommonIt = llvm::max_element(Counts, llvm::less_second()); in LowerBUILD_VECTOR()
2539 assert(CommonIt != Counts.end() && "Unexpected all-undef build_vector"); in LowerBUILD_VECTOR()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h695 void setCounts(ArrayRef<uint64_t> Counts) { CounterValues = Counts; } in setCounts() argument
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1440 RegionCounts = ProfRecord->Counts; in loadRegionCounts()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp2808 for (auto &Counts : FrameEscapeInfo) { in verifyFrameRecoverIndices() local
2809 Function *F = Counts.first; in verifyFrameRecoverIndices()
2810 unsigned EscapedObjectCount = Counts.second.first; in verifyFrameRecoverIndices()
2811 unsigned MaxRecoveredIndex = Counts.second.second; in verifyFrameRecoverIndices()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td2152 // 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
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp8228 NonContigInfo.Counts[L][RevIdx], CountLVal, in emitNonContiguousDescriptor()

12