Home
last modified time | relevance | path

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

1234

/external/catch2/include/internal/
Dcatch_totals.cpp12 Counts Counts::operator - ( Counts const& other ) const { in operator -()
13 Counts diff; in operator -()
20 Counts& Counts::operator += ( Counts const& other ) { in operator +=()
27 std::size_t Counts::total() const { in total()
30 bool Counts::allPassed() const { in allPassed()
33 bool Counts::allOk() const { in allOk()
Dcatch_totals.h15 struct Counts { struct
16 Counts operator - ( Counts const& other ) const;
17 Counts& operator += ( Counts const& other );
36 Counts assertions; argument
37 Counts testCases;
Dcatch_run_context.cpp176 bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) { in sectionStarted()
198 bool RunContext::testForMissingAssertions(Counts& assertions) { in testForMissingAssertions()
211 Counts assertions = m_totals.assertions - endInfo.prevAssertions; in sectionEnded()
284 Counts assertions; in handleFatalErrorCondition()
323 Counts prevAssertions = m_totals.assertions; in runCurrentTest()
358 Counts assertions = m_totals.assertions - prevAssertions; in runCurrentTest()
Dcatch_interfaces_capture.h24 struct Counts;
38 Counts& assertions ) = 0;
Dcatch_run_context.h78 bool sectionStarted( SectionInfo const& sectionInfo, Counts& assertions ) override;
115 bool testForMissingAssertions( Counts& assertions );
/external/swiftshader/third_party/LLVM/tools/llvm-prof/
Dllvm-prof.cpp159 std::vector<std::pair<BasicBlock*, double> > Counts; in runOnModule() local
167 Counts.push_back(std::make_pair(BB, w)); in runOnModule()
211 for (unsigned i = 0, e = Counts.size(); i != e; ++i) in runOnModule()
212 TotalExecutions += Counts[i].second; in runOnModule()
215 sort(Counts.begin(), Counts.end(), in runOnModule()
223 unsigned BlocksToPrint = Counts.size(); in runOnModule()
226 if (Counts[i].second == 0) break; in runOnModule()
227 Function *F = Counts[i].first->getParent(); in runOnModule()
229 << format("%5g", Counts[i].second/(double)TotalExecutions*100) << "% " in runOnModule()
230 << format("%5.0f", Counts[i].second) << "/" in runOnModule()
[all …]
/external/llvm/lib/Target/AMDGPU/
DSIInsertWaits.cpp117 const Counters &Counts);
379 Counters Counts = WaitCounts; in insertWait() local
395 Counts.Array[i] = std::min(Value, WaitCounts.Array[i]); in insertWait()
398 Counts.Array[i] = 0; in insertWait()
401 WaitedOn.Array[i] = LastIssued.Array[i] - Counts.Array[i]; in insertWait()
408 if (Counts.Named.EXP == 0) in insertWait()
413 .addImm((Counts.Named.VM & 0xF) | in insertWait()
414 ((Counts.Named.EXP & 0x7) << 4) | in insertWait()
415 ((Counts.Named.LGKM & 0xF) << 8)); in insertWait()
441 Counters Counts, WaitOn; in handleExistingWait() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ProfileData/
DInstrProfTest.cpp81 ASSERT_EQ(4U, I->Counts.size()); in TEST_P()
82 ASSERT_EQ(1U, I->Counts[0]); in TEST_P()
83 ASSERT_EQ(2U, I->Counts[1]); in TEST_P()
84 ASSERT_EQ(3U, I->Counts[2]); in TEST_P()
85 ASSERT_EQ(4U, I->Counts[3]); in TEST_P()
97 ASSERT_EQ(2U, R->Counts.size()); in TEST_P()
98 ASSERT_EQ(1U, R->Counts[0]); in TEST_P()
99 ASSERT_EQ(2U, R->Counts[1]); in TEST_P()
103 ASSERT_EQ(2U, R->Counts.size()); in TEST_P()
104 ASSERT_EQ(3U, R->Counts[0]); in TEST_P()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DCGProfile.cpp28 MapVector<std::pair<Function *, Function *>, uint64_t> Counts; in run() local
36 uint64_t &Count = Counts[std::make_pair(F, CalledF)]; in run()
75 addModuleFlags(M, Counts); in run()
82 MapVector<std::pair<Function *, Function *>, uint64_t> &Counts) const { in addModuleFlags()
83 if (Counts.empty()) in addModuleFlags()
90 for (auto E : Counts) { in addModuleFlags()
/external/llvm/unittests/ProfileData/
DInstrProfTest.cpp82 ASSERT_EQ(4U, I->Counts.size()); in TEST_P()
83 ASSERT_EQ(1U, I->Counts[0]); in TEST_P()
84 ASSERT_EQ(2U, I->Counts[1]); in TEST_P()
85 ASSERT_EQ(3U, I->Counts[2]); in TEST_P()
86 ASSERT_EQ(4U, I->Counts[3]); in TEST_P()
100 ASSERT_EQ(2U, R->Counts.size()); in TEST_P()
101 ASSERT_EQ(1U, R->Counts[0]); in TEST_P()
102 ASSERT_EQ(2U, R->Counts[1]); in TEST_P()
106 ASSERT_EQ(2U, R->Counts.size()); in TEST_P()
107 ASSERT_EQ(3U, R->Counts[0]); in TEST_P()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DTrigramIndex.cpp77 Index[Tri].push_back(Counts.size()); in insert()
87 Counts.push_back(Cnt); in insert()
93 std::vector<unsigned> CurCounts(Counts.size()); in isDefinitelyOut()
106 if (CurCounts[J] >= Counts[J]) in isDefinitelyOut()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DSyntheticCountsPropagation.cpp101 DenseMap<Function *, uint64_t> Counts; in run() local
103 initializeCounts(M, [&](Function *F, uint64_t Count) { Counts[F] = Count; }); in run()
126 [&](const CallGraphNode *N) { return Counts[N->getFunction()]; }, in run()
131 Counts[F] += New; in run()
135 for (auto Entry : Counts) in run()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/
DReservoirSamplerTest.cpp38 std::vector<int> Counts(Items.size(), 0); in TEST() local
45 Counts[Sampler.getSelection()] += 1; in TEST()
52 for (int Ys : Counts) in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DTrailingObjects.h339 TrailingTys, size_t>::type... Counts) { in additionalSizeToAlloc()
340 return ParentType::additionalSizeToAllocImpl(0, Counts...); in additionalSizeToAlloc()
351 TrailingTys, size_t>::type... Counts) { in totalSizeToAlloc()
352 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...); in totalSizeToAlloc()
371 template <size_t... Counts> struct with_counts {
372 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
/external/llvm/include/llvm/Support/
DTrailingObjects.h330 TrailingTys, size_t>::type... Counts) {
331 return ParentType::additionalSizeToAllocImpl(0, Counts...);
342 TrailingTys, size_t>::type... Counts) {
343 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
362 template <size_t... Counts> struct with_counts {
363 enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProf.h623 std::vector<uint64_t> Counts; member
626 InstrProfRecord(std::vector<uint64_t> Counts) : Counts(std::move(Counts)) {} in InstrProfRecord()
629 : Counts(RHS.Counts), in InstrProfRecord()
635 Counts = RHS.Counts;
700 Counts.clear(); in Clear()
773 std::vector<uint64_t> Counts) in NamedInstrProfRecord()
774 : InstrProfRecord(std::move(Counts)), Name(Name), Hash(Hash) {} in NamedInstrProfRecord()
/external/llvm/lib/ProfileData/
DInstrProfWriter.cpp107 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
129 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
130 for (uint64_t I : ProfRecord.Counts) in EmitData()
190 if (std::any_of(IPR.Counts.begin(), IPR.Counts.end(), in shouldEncodeData()
302 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
304 for (uint64_t Count : Func.Counts) in writeRecordInText()
DProfileSummaryBuilder.cpp41 addEntryCount(R.Counts[0]); in addRecord()
42 for (size_t I = 1, E = R.Counts.size(); I < E; ++I) in addRecord()
43 addInternalCount(R.Counts[I]); in addRecord()
DInstrProfReader.cpp232 Record.Counts.clear(); in readNextRecord()
233 Record.Counts.reserve(NumCounters); in readNextRecord()
240 Record.Counts.push_back(Count); in readNextRecord()
385 Record.Counts.clear(); in readRawCounts()
386 Record.Counts.reserve(RawCounts.size()); in readRawCounts()
388 Record.Counts.push_back(swap(Count)); in readRawCounts()
390 Record.Counts = RawCounts; in readRawCounts()
696 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
701 Counts = Record.get().Counts; in getFunctionCounts()
DInstrProf.cpp391 if (Counts.size() != Other.Counts.size()) { in merge()
396 for (size_t I = 0, E = Other.Counts.size(); I < E; ++I) { in merge()
398 Counts[I] = in merge()
399 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
417 for (auto &Count : this->Counts) { in scale()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp40 addEntryCount(R.Counts[0]); in addRecord()
41 for (size_t I = 1, E = R.Counts.size(); I < E; ++I) in addRecord()
42 addInternalCount(R.Counts[I]); in addRecord()
DInstrProfWriter.cpp126 M += ProfRecord.Counts.size() * sizeof(uint64_t); in EmitKeyDataLength()
149 LE.write<uint64_t>(ProfRecord.Counts.size()); in EmitData()
150 for (uint64_t I : ProfRecord.Counts) in EmitData()
227 if (llvm::any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) in shouldEncodeData()
341 OS << "# Num Counters:\n" << Func.Counts.size() << "\n"; in writeRecordInText()
343 for (uint64_t Count : Func.Counts) in writeRecordInText()
DInstrProfReader.cpp259 Record.Counts.reserve(NumCounters); in readNextRecord()
266 Record.Counts.push_back(Count); in readNextRecord()
407 Record.Counts.clear(); in readRawCounts()
408 Record.Counts.reserve(RawCounts.size()); in readRawCounts()
410 Record.Counts.push_back(swap(Count)); in readRawCounts()
412 Record.Counts = RawCounts; in readRawCounts()
725 std::vector<uint64_t> &Counts) { in getFunctionCounts() argument
730 Counts = Record.get().Counts; in getFunctionCounts()
/external/syzkaller/vendor/golang.org/x/net/trace/
Devents.go50 Counts [][]int // eventLog count per family/bucket
70 data.Counts = make([][]int, len(data.Families))
74 data.Counts[i] = make([]int, len(data.Buckets))
76 data.Counts[i][j] = f.Count(now, b.MaxErrAge)
484 {{$n := index $.Counts $i $j}}
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestBNF.java133 static class Counts { class in TestBNF
136 Counts(int max) { in Counts() method in TestBNF.Counts

1234