|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ProfileData/InstrProf.h 692 : Counts(RHS.Counts),
696 InstrProfRecord &operator=(InstrProfRecord &&) = default;
698 Counts = RHS.Counts;
698 Counts = RHS.Counts;
763 Counts.clear();
lib/ProfileData/InstrProf.cpp 483 Sum.NumEntries += Counts.size();
484 for (size_t F = 0, E = Counts.size(); F < E; ++F)
485 FuncSum += Counts[F];
556 bool Mismatch = (Counts.size() != Other.Counts.size());
556 bool Mismatch = (Counts.size() != Other.Counts.size());
581 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) {
582 Score += OverlapStats::score(Counts[I], Other.Counts[I],
582 Score += OverlapStats::score(Counts[I], Other.Counts[I],
584 MaxCount = std::max(Other.Counts[I], MaxCount);
591 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I)
592 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I],
592 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I],
596 FuncLevelOverlap.Overlap.NumEntries = Other.Counts.size();
659 if (Counts.size() != Other.Counts.size()) {
659 if (Counts.size() != Other.Counts.size()) {
664 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) {
666 Counts[I] =
667 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
667 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
685 for (auto &Count : this->Counts) {
lib/ProfileData/InstrProfReader.cpp 277 Record.Counts.reserve(NumCounters);
284 Record.Counts.push_back(Count);
431 Record.Counts.clear();
432 Record.Counts.reserve(RawCounts.size());
434 Record.Counts.push_back(swap(Count));
436 Record.Counts = RawCounts;
891 Counts = Record.get().Counts;
lib/ProfileData/InstrProfWriter.cpp 126 M += ProfRecord.Counts.size() * sizeof(uint64_t);
152 LE.write<uint64_t>(ProfRecord.Counts.size());
153 for (uint64_t I : ProfRecord.Counts)
264 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; }))
404 OS << "# Num Counters:\n" << Func.Counts.size() << "\n";
406 for (uint64_t Count : Func.Counts)
lib/ProfileData/ProfileSummaryBuilder.cpp 39 addEntryCount(R.Counts[0]);
40 for (size_t I = 1, E = R.Counts.size(); I < E; ++I)
41 addInternalCount(R.Counts[I]);
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 1179 std::vector<uint64_t> &CountFromProfile = ProfileRecord.Counts;
1362 std::vector<uint64_t> &CountFromProfile = UseFunc->getProfileRecord().Counts;
tools/clang/lib/CodeGen/CodeGenPGO.cpp 984 RegionCounts = ProfRecord->Counts;
tools/llvm-profdata/llvm-profdata.cpp 874 assert(Func.Counts.size() > 0 && "function missing entry counter");
879 for (size_t I = 0, E = Func.Counts.size(); I < E; ++I) {
880 FuncMax = std::max(FuncMax, Func.Counts[I]);
881 FuncSum += Func.Counts[I];
912 << " Counters: " << Func.Counts.size() << "\n";
914 OS << " Function count: " << Func.Counts[0] << "\n";
928 for (size_t I = Start, E = Func.Counts.size(); I < E; ++I) {
929 OS << (I == Start ? "" : ", ") << Func.Counts[I];
unittests/ProfileData/InstrProfTest.cpp 82 ASSERT_EQ(4U, I->Counts.size());
83 ASSERT_EQ(1U, I->Counts[0]);
84 ASSERT_EQ(2U, I->Counts[1]);
85 ASSERT_EQ(3U, I->Counts[2]);
86 ASSERT_EQ(4U, I->Counts[3]);
98 ASSERT_EQ(2U, R->Counts.size());
99 ASSERT_EQ(1U, R->Counts[0]);
100 ASSERT_EQ(2U, R->Counts[1]);
104 ASSERT_EQ(2U, R->Counts.size());
105 ASSERT_EQ(3U, R->Counts[0]);
106 ASSERT_EQ(4U, R->Counts[1]);
214 ASSERT_EQ(1U, R->Counts.size());
215 ASSERT_EQ(42U, R->Counts[0]);
219 ASSERT_EQ(2U, R->Counts.size());
220 ASSERT_EQ(0U, R->Counts[0]);
221 ASSERT_EQ(0U, R->Counts[1]);
610 ASSERT_EQ(Max, ReadRecord1->Counts[0]);