Home
last modified time | relevance | path

Searched refs:Counter (Results 1 – 25 of 248) sorted by relevance

12345678910

/llvm-project-15.0.7/clang/test/Profile/Inputs/
H A Dcxx-hash-v2.proftext6 # Counter Values:
15 # Counter Values:
24 # Counter Values:
33 # Counter Values:
42 # Counter Values:
52 # Counter Values:
64 # Counter Values:
76 # Counter Values:
85 # Counter Values:
95 # Counter Values:
[all …]
/llvm-project-15.0.7/libcxx/test/support/
H A DCounter.h19 class Counter : public Counter_base
22 Counter() : data_() { ++gConstructed; } in Counter() function
23 Counter(const T &data) : data_(data) { ++gConstructed; } in Counter() function
24 Counter(const Counter& rhs) : data_(rhs.data_) { ++gConstructed; } in Counter() function
25 Counter& operator=(const Counter& rhs) { data_ = rhs.data_; return *this; }
27 Counter(Counter&& rhs) : data_(std::move(rhs.data_)) { ++gConstructed; } in Counter() function
28Counter& operator=(Counter&& rhs) { ++gConstructed; data_ = std::move(rhs.data_); return *this; }
30 ~Counter() { --gConstructed; } in ~Counter()
34 bool operator==(const Counter& x) const {return data_ == x.data_;}
46 struct hash<Counter<T> >
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/Inputs/
H A Dcspgo.proftext8 # Counter Values:
17 # Counter Values:
26 # Counter Values:
34 # Counter Values:
42 # Counter Values:
51 # Counter Values:
60 # Counter Values:
77 # Counter Values:
86 # Counter Values:
98 # Counter Values:
[all …]
H A Dthinlto_cs.proftext8 # Counter Values:
16 # Counter Values:
25 # Counter Values:
34 # Counter Values:
43 # Counter Values:
51 # Counter Values:
59 # Counter Values:
70 # Counter Values:
H A Dmultiple_hash_profile.proftext8 # Counter Values:
18 # Counter Values:
27 # Counter Values:
35 # Counter Values:
45 # Counter Values:
54 # Counter Values:
63 # Counter Values:
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStatisticTest.cpp38 Counter = 0; in TEST()
40 Counter++; in TEST()
41 Counter++; in TEST()
59 Counter = 2; in TEST()
61 EXPECT_EQ(Counter, 2u); in TEST()
63 EXPECT_EQ(Counter, 0u); in TEST()
75 Counter = 0; in TEST()
76 EXPECT_EQ(Counter, 0u); in TEST()
77 Counter++; in TEST()
78 Counter++; in TEST()
[all …]
/llvm-project-15.0.7/third-party/benchmark/test/
H A Duser_counters_test.cc124 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
125 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate()
167 state.counters["foo"] = bm::Counter{0.0001, bm::Counter::kInvert}; in BM_Invert()
168 state.counters["bar"] = bm::Counter{10000, bm::Counter::kInvert}; in BM_Invert()
209 bm::Counter{1, bm::Counter::kIsRate | bm::Counter::kInvert}; in BM_Counters_InvertedRate()
211 bm::Counter{8192, bm::Counter::kIsRate | bm::Counter::kInvert}; in BM_Counters_InvertedRate()
292 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
293 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
424 bm::Counter{1, bm::Counter::kIsIterationInvariantRate}; in BM_Counters_kIsIterationInvariantRate()
426 bm::Counter{2, bm::Counter::kIsRate | bm::Counter::kIsIterationInvariant}; in BM_Counters_kIsIterationInvariantRate()
[all …]
H A Duser_counters_thousands_test.cc17 bm::Counter(1000 * 1000, bm::Counter::kDefaults)}, in BM_Counters_Thousands()
18 {"t1_1000000Base1000", bm::Counter(1000 * 1000, bm::Counter::kDefaults, in BM_Counters_Thousands()
19 benchmark::Counter::OneK::kIs1000)}, in BM_Counters_Thousands()
20 {"t2_1000000Base1024", bm::Counter(1000 * 1000, bm::Counter::kDefaults, in BM_Counters_Thousands()
21 benchmark::Counter::OneK::kIs1024)}, in BM_Counters_Thousands()
22 {"t3_1048576Base1000", bm::Counter(1024 * 1024, bm::Counter::kDefaults, in BM_Counters_Thousands()
23 benchmark::Counter::OneK::kIs1000)}, in BM_Counters_Thousands()
24 {"t4_1048576Base1024", bm::Counter(1024 * 1024, bm::Counter::kDefaults, in BM_Counters_Thousands()
25 benchmark::Counter::OneK::kIs1024)}, in BM_Counters_Thousands()
H A Duser_counters_tabular_test.cc69 {"Foo", {1, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular()
70 {"Bar", {2, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular()
71 {"Baz", {4, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular()
72 {"Bat", {8, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular()
73 {"Frob", {16, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular()
74 {"Lob", {32, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular()
435 {"Foo", {10, bm::Counter::kAvgThreads}}, in BM_CounterSet0_Tabular()
436 {"Bar", {20, bm::Counter::kAvgThreads}}, in BM_CounterSet0_Tabular()
437 {"Baz", {40, bm::Counter::kAvgThreads}}, in BM_CounterSet0_Tabular()
475 {"Foo", {15, bm::Counter::kAvgThreads}}, in BM_CounterSet1_Tabular()
[all …]
/llvm-project-15.0.7/llvm/unittests/ProfileData/
H A DCoverageMappingTest.cpp40 void PrintTo(const Counter &C, ::std::ostream *os) { in PrintTo()
270 addCMR(Counter::getCounter(0), "foo", 1, 1, 1, 1); in TEST_P()
271 addCMR(Counter::getCounter(1), "foo", 2, 1, 2, 2); in TEST_P()
272 addCMR(Counter::getZero(), "foo", 3, 1, 3, 4); in TEST_P()
273 addCMR(Counter::getCounter(2), "foo", 4, 1, 4, 8); in TEST_P()
274 addCMR(Counter::getCounter(3), "bar", 1, 2, 3, 4); in TEST_P()
344 addCMR(Counter::getCounter(0), "foo", 1, 1, 5, 5); in TEST_P()
353 addCMR(Counter::getCounter(0), "foo", 1, 1, 5, 5); in TEST_P()
703 addCMR(Counter::getZero(), "file1", 1, 2, 3, 4); in TEST_P()
815 CounterExpression::Add, Counter::getCounter(1), Counter::getCounter(2))); in TEST_P()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DPerfHelper.cpp97 Counter::Counter(PerfEvent &&E) : Event(std::move(E)){ in Counter() function in llvm::exegesis::pfm::Counter
114 Counter::~Counter() { close(FileDescriptor); } in ~Counter()
120 int64_t Counter::read() const { in read()
132 Counter::readOrError(StringRef /*unused*/) const { in readOrError()
143 int Counter::numValues() const { return 1; } in numValues()
146 Counter::Counter(PerfEvent &&Event) : Event(std::move(Event)) {} in Counter() function in llvm::exegesis::pfm::Counter
148 Counter::~Counter() = default;
150 void Counter::start() {} in start()
152 void Counter::stop() {} in stop()
154 int64_t Counter::read() const { return 42; } in read()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-cov/Inputs/
H A Dbranch-c-general.proftext6 # Counter Values:
30 # Counter Values:
51 # Counter Values:
71 # Counter Values:
80 # Counter Values:
90 # Counter Values:
110 # Counter Values:
121 # Counter Values:
137 # Counter Values:
166 # Counter Values:
[all …]
H A Dname_allowlist.proftext6 # Counter Values:
14 # Counter Values:
22 # Counter Values:
30 # Counter Values:
38 # Counter Values:
46 # Counter Values:
54 # Counter Values:
H A Dname_whitelist.proftext6 # Counter Values:
14 # Counter Values:
22 # Counter Values:
30 # Counter Values:
38 # Counter Values:
46 # Counter Values:
54 # Counter Values:
/llvm-project-15.0.7/third-party/benchmark/bindings/python/google_benchmark/
H A Dbenchmark.cc118 using benchmark::Counter; in PYBIND11_MODULE()
119 py::class_<Counter> py_counter(m, "Counter"); in PYBIND11_MODULE()
121 py::enum_<Counter::Flags>(py_counter, "Flags") in PYBIND11_MODULE()
135 py::enum_<Counter::OneK>(py_counter, "OneK") in PYBIND11_MODULE()
136 .value("kIs1000", Counter::OneK::kIs1000) in PYBIND11_MODULE()
137 .value("kIs1024", Counter::OneK::kIs1024) in PYBIND11_MODULE()
141 .def(py::init<double, Counter::Flags, Counter::OneK>(), in PYBIND11_MODULE()
143 py::arg("k") = Counter::kIs1000) in PYBIND11_MODULE()
145 .def_readwrite("value", &Counter::value) in PYBIND11_MODULE()
146 .def_readwrite("flags", &Counter::flags) in PYBIND11_MODULE()
[all …]
H A Dexample.py27 from google_benchmark import Counter
86 state.counters["foo_rate"] = Counter(num_foo, Counter.kIsRate)
88 state.counters["foo_inv_rate"] = Counter(num_foo, Counter.kIsRate | Counter.kInvert)
90 state.counters["foo_avg"] = Counter(num_foo, Counter.kAvgThreads)
92 state.counters["foo_avg_rate"] = Counter(num_foo, Counter.kAvgThreadsRate)
/llvm-project-15.0.7/llvm/test/tools/llvm-profdata/Inputs/
H A Dmultiple-profdata-merge.proftext8 # Counter Values:
19 # Counter Values:
32 # Counter Values:
42 # Counter Values:
55 # Counter Values:
63 # Counter Values:
71 # Counter Values:
79 # Counter Values:
87 # Counter Values:
95 # Counter Values:
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
H A Dmerge.pass.cpp65 typedef std::unordered_multimap<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main()
66 map_type src({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
67 map_type dst({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
81 …assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
82 …assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
90 bool operator()(const Counter<int>& lhs, const Counter<int>& rhs) const in main()
98 size_t operator()(const Counter<int>& p) const in main()
100 return std::hash<Counter<int>>()(p); in main()
104 …typedef std::unordered_multimap<Counter<int>, int, std::hash<Counter<int>>, std::equal_to<Counter<… in main()
105 typedef std::unordered_multimap<Counter<int>, int, hasher, equal> second_map_type; in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/
H A Dmerge.pass.cpp65 typedef std::unordered_map<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main()
66 map_type src({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
67 map_type dst({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
81 …assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
82 …assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
90 bool operator()(const Counter<int>& lhs, const Counter<int>& rhs) const in main()
98 size_t operator()(const Counter<int>& p) const in main()
100 return std::hash<Counter<int>>()(p); in main()
104 …typedef std::unordered_map<Counter<int>, int, std::hash<Counter<int>>, std::equal_to<Counter<int>>… in main()
105 typedef std::unordered_map<Counter<int>, int, hasher, equal> second_map_type; in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multiset/
H A Dmerge.pass.cpp65 typedef std::unordered_multiset<Counter<int>, throw_hasher<Counter<int>>> set_type; in main()
66 set_type src({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
67 set_type dst({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
81 assert(set_equal(src, set_type({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
82 assert(set_equal(dst, set_type({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
90 bool operator()(const Counter<int>& lhs, const Counter<int>& rhs) const in main()
98 size_t operator()(const Counter<int>& p) const { return std::hash<Counter<int>>()(p); } in main()
101 …typedef std::unordered_multiset<Counter<int>, std::hash<Counter<int>>, std::equal_to<Counter<int>>… in main()
102 typedef std::unordered_multiset<Counter<int>, hasher, equal> second_set_type; in main()
103 typedef std::unordered_set<Counter<int>, hasher, equal> third_set_type; in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/
H A Dmerge.pass.cpp65 typedef std::unordered_set<Counter<int>, throw_hasher<Counter<int>>> set_type; in main()
66 set_type src({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
67 set_type dst({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
81 assert(set_equal(src, set_type({1, 3, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
82 assert(set_equal(dst, set_type({2, 4, 5}, 0, throw_hasher<Counter<int>>(do_throw)))); in main()
90 bool operator()(const Counter<int>& lhs, const Counter<int>& rhs) const in main()
98 size_t operator()(const Counter<int>& p) const { return std::hash<Counter<int>>()(p); } in main()
101 …typedef std::unordered_set<Counter<int>, std::hash<Counter<int>>, std::equal_to<Counter<int>>> fir… in main()
102 typedef std::unordered_set<Counter<int>, hasher, equal> second_set_type; in main()
103 typedef std::unordered_multiset<Counter<int>, hasher, equal> third_set_type; in main()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp97 Counter Count;
118 SourceMappingRegion(Counter Count, Optional<Counter> FalseCount, in SourceMappingRegion()
561 Counter subtractCounters(Counter LHS, Counter RHS, bool Simplify = true) { in subtractCounters()
566 Counter addCounters(Counter LHS, Counter RHS, bool Simplify = true) { in addCounters()
570 Counter addCounters(Counter C1, Counter C2, Counter C3, in addCounters()
696 Counter propagateCounts(Counter TopCount, const Stmt *S, in propagateCounts()
942 Counter BreakCount;
1106 Counter OutCount = in VisitWhileStmt()
1138 Counter OutCount = in VisitDoStmt()
1235 Counter OutCount = in VisitCXXForRangeStmt()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h92 struct Counter { struct
120 friend bool operator==(const Counter &LHS, const Counter &RHS) { argument
124 friend bool operator!=(const Counter &LHS, const Counter &RHS) {
128 friend bool operator<(const Counter &LHS, const Counter &RHS) {
133 static Counter getZero() { return Counter(); } in getZero() argument
152 Counter LHS, RHS;
154 CounterExpression(ExprKind Kind, Counter LHS, Counter RHS) in CounterExpression()
192 Counter simplify(Counter ExpressionTree);
198 Counter add(Counter LHS, Counter RHS, bool Simplify = true);
202 Counter subtract(Counter LHS, Counter RHS, bool Simplify = true);
[all …]
/llvm-project-15.0.7/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingWriter.cpp91 void mark(Counter C) { in mark()
100 void gatherUsed(Counter C) { in gatherUsed()
114 Counter adjust(Counter C) const { in adjust()
138 Counter C) { in encodeCounter()
145 return Tag | (ID << Counter::EncodingTagBits); in encodeCounter()
148 static void writeCounter(ArrayRef<CounterExpression> Expressions, Counter C, in writeCounter()
205 Counter Count = Minimizer.adjust(I->Count); in write()
206 Counter FalseCount = Minimizer.adjust(I->FalseCount); in write()
216 Counter::EncodingCounterTagAndExpansionRegionTagBits)); in write()
220 (1 << Counter::EncodingTagBits) | in write()
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dwindows-seh-filter-inFinally.c11 int Counter = 0; in main() local
16 Counter -= 1; in main()
20 Counter += 2; in main()
22 } __except(Counter) { in main()
24 Counter += 3; in main()
28 Counter += 5; in main()

12345678910