| /llvm-project/clang/test/Profile/Inputs/ |
| H A D | cxx-hash-v2.proftext | 6 # 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/clang/unittests/Analysis/FlowSensitive/ |
| H A D | CFGMatchSwitchTest.cpp | 38 CFGElementMatches &Counter) { Counter.StmtMatches++; }) in buildCFGMatchSwitch() argument 42 CFGElementMatches &Counter) { Counter.InitializerMatches++; }) in buildCFGMatchSwitch() argument 75 CFGElementMatches Counter; in TEST() local 76 applySwitchToCode(Switch, Counter, R"( in TEST() 81 EXPECT_EQ(Counter.StmtMatches, 0u); in TEST() 82 EXPECT_EQ(Counter.InitializerMatches, 0u); in TEST() 87 CFGElementMatches Counter; in TEST() local 88 applySwitchToCode(Switch, Counter, R"( in TEST() 93 EXPECT_EQ(Counter.StmtMatches, 1u); in TEST() 94 EXPECT_EQ(Counter.InitializerMatches, 0u); in TEST() [all …]
|
| /llvm-project/libcxx/test/support/ |
| H A D | Counter.h | 19 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 28 Counter in Counter() [all...] |
| /llvm-project/llvm/unittests/ProfileData/ |
| H A D | CoverageMappingTest.cpp | 44 void PrintTo(const Counter &C, ::std::ostream *os) { in PrintTo() 50 *os << "Counter " << C.getCounterID(); in PrintTo() 182 void addCMR(Counter C, StringRef File, unsigned LS, unsigned CS, unsigned LE, in addCMR() 193 addCMR(Counter::getZero(), File, LS, CS, LE, CE, true); in addSkipped() 204 void addMCDCBranchCMR(Counter C1, Counter C2, mcdc::ConditionID ID, in addMCDCBranchCMR() 298 auto C = [](unsigned ID) { return Counter::getCounter(ID); }; in TEST_P() 299 auto A = [&](Counter LHS, Counter RHS) { return Builder.add(LHS, RHS); }; in TEST_P() 301 auto getBranchCounterPair = [&](Counter in TEST_P() [all...] |
| /llvm-project/llvm/test/tools/llvm-cov/Inputs/ |
| H A D | mcdc-const-folding.proftext | 6 # Counter Values: 21 # Counter Values: 36 # Counter Values: 51 # Counter Values: 66 # Counter Values: 81 # Counter Values: 96 # Counter Values: 111 # Counter Values: 126 # Counter Values: 143 # Counter Values: [all …]
|
| H A D | branch-c-general.proftext | 6 # 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 D | name_whitelist.proftext | 6 # Counter Values: 14 # Counter Values: 22 # Counter Values: 30 # Counter Values: 38 # Counter Values: 46 # Counter Values: 54 # Counter Values:
|
| H A D | name_allowlist.proftext | 6 # Counter Values: 14 # Counter Values: 22 # Counter Values: 30 # Counter Values: 38 # Counter Values: 46 # Counter Values: 54 # Counter Values:
|
| /llvm-project/llvm/test/Transforms/PGOProfile/Inputs/ |
| H A D | cspgo.proftext | 8 # 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 D | thinlto_cs.proftext | 8 # Counter Values: 16 # Counter Values: 25 # Counter Values: 34 # Counter Values: 43 # Counter Values: 51 # Counter Values: 59 # Counter Values: 70 # Counter Values:
|
| /llvm-project/third-party/benchmark/test/ |
| H A D | user_counters_test.cc | 126 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate() 127 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate() 170 state.counters["foo"] = bm::Counter{0.0001, bm::Counter::kInvert}; in BM_Invert() 171 state.counters["bar"] = bm::Counter{10000, bm::Counter::kInvert}; in BM_Invert() 212 bm::Counter{1, bm::Counter::kIsRate | bm::Counter::kInvert}; in BM_Counters_InvertedRate() 214 bm::Counter{8192, bm::Counter::kIsRate | bm::Counter::kInvert}; in BM_Counters_InvertedRate() 295 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads() 296 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads() 340 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreadsRate}; in BM_Counters_AvgThreadsRate() 341 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreadsRate}; in BM_Counters_AvgThreadsRate() [all …]
|
| H A D | user_counters_thousands_test.cc | 17 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 bm::Counter::OneK::kIs1000)}, in BM_Counters_Thousands() 20 {"t2_1000000Base1024", bm::Counter(1000 * 1000, bm::Counter::kDefaults, in BM_Counters_Thousands() 21 bm::Counter::OneK::kIs1024)}, in BM_Counters_Thousands() 22 {"t3_1048576Base1000", bm::Counter(1024 * 1024, bm::Counter::kDefaults, in BM_Counters_Thousands() 23 bm::Counter::OneK::kIs1000)}, in BM_Counters_Thousands() 24 {"t4_1048576Base1024", bm::Counter(1024 * 1024, bm::Counter::kDefaults, in BM_Counters_Thousands() 25 bm::Counter::OneK::kIs1024)}, in BM_Counters_Thousands()
|
| H A D | string_util_gtest.cc | 165 std::tuple<double, benchmark::Counter::OneK, std::string>>; 170 std::make_tuple(0.0, benchmark::Counter::kIs1024, "0"), 171 std::make_tuple(999.0, benchmark::Counter::kIs1024, "999"), 172 std::make_tuple(1000.0, benchmark::Counter::kIs1024, "1000"), 173 std::make_tuple(1024.0, benchmark::Counter::kIs1024, "1Ki"), 174 std::make_tuple(1000 * 1000.0, benchmark::Counter::kIs1024, 176 std::make_tuple(1024 * 1024.0, benchmark::Counter::kIs1024, "1Mi"), 177 std::make_tuple(1000 * 1000 * 1000.0, benchmark::Counter::kIs1024, 179 std::make_tuple(1024 * 1024 * 1024.0, benchmark::Counter::kIs1024, 181 std::make_tuple(0.0, benchmark::Counter::kIs1000, "0"), [all …]
|
| H A D | user_counters_tabular_test.cc | 72 {"Foo", {1, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 73 {"Bar", {2, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 74 {"Baz", {4, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 75 {"Bat", {8, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 76 {"Frob", {16, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 77 {"Lob", {32, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 383 {"Foo", {1, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() 384 {"Bar", {2, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() 385 {"Baz", {4, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() 386 {"Bat", {8, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() [all …]
|
| /llvm-project/llvm/unittests/ADT/ |
| H A D | StatisticTest.cpp | 18 STATISTIC(Counter, "Counts things"); 38 Counter = 0; in TEST() 39 EXPECT_EQ(Counter, 0ull); in TEST() 40 Counter++; in TEST() 41 Counter++; in TEST() 42 Counter += (std::numeric_limits<uint64_t>::max() - 3); in TEST() 44 EXPECT_EQ(Counter, std::numeric_limits<uint64_t>::max() - 1); in TEST() 46 EXPECT_EQ(Counter, UINT64_C(0)); in TEST() 59 Counter = 2; in TEST() 61 EXPECT_EQ(Counter, 2u); in TEST() [all …]
|
| /llvm-project/third-party/benchmark/bindings/python/google_benchmark/ |
| H A D | benchmark.cc | 118 using benchmark::Counter; in NB_MODULE() 119 nb::class_<Counter> py_counter(m, "Counter"); in NB_MODULE() 121 nb::enum_<Counter::Flags>(py_counter, "Flags") in NB_MODULE() 122 .value("kDefaults", Counter::Flags::kDefaults) in NB_MODULE() 123 .value("kIsRate", Counter::Flags::kIsRate) in NB_MODULE() 124 .value("kAvgThreads", Counter::Flags::kAvgThreads) in NB_MODULE() 125 .value("kAvgThreadsRate", Counter::Flags::kAvgThreadsRate) in NB_MODULE() 126 .value("kIsIterationInvariant", Counter::Flags::kIsIterationInvariant) in NB_MODULE() 128 Counter::Flags::kIsIterationInvariantRate) in NB_MODULE() 129 .value("kAvgIterations", Counter::Flags::kAvgIterations) in NB_MODULE() [all …]
|
| H A D | example.py | 27 from google_benchmark import Counter 87 state.counters["foo_rate"] = Counter(num_foo, Counter.kIsRate) 89 state.counters["foo_inv_rate"] = Counter( 90 num_foo, Counter.kIsRate | Counter.kInvert 93 state.counters["foo_avg"] = Counter(num_foo, Counter.kAvgThreads) 95 state.counters["foo_avg_rate"] = Counter(num_foo, Counter.kAvgThreadsRate)
|
| /llvm-project/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
| H A D | merge.pass.cpp | 65 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 std::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/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/ |
| H A D | merge.pass.cpp | 65 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 std::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/libcxx/test/std/containers/unord/unord.set/ |
| H A D | merge.pass.cpp | 65 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 std::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/libcxx/test/std/containers/unord/unord.multiset/ |
| H A D | merge.pass.cpp | 65 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 std::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/llvm/test/tools/llvm-profdata/Inputs/ |
| H A D | multiple-profdata-merge.proftext | 8 # 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/llvm/lib/ProfileData/Coverage/ |
| H A D | CoverageMappingWriter.cpp | 91 void mark(Counter C) { 100 void gatherUsed(Counter C) { 114 Counter adjust(Counter C) const { 116 C = Counter::getExpression(AdjustedExpressionIDs[C.getExpressionID()]); in adjust() 127 /// Counter::Zero(0) - A Counter with kind Counter::Zero 128 /// Counter::CounterValueReference(1) - A counter with kind 129 /// Counter [all...] |
| /llvm-project/llvm/unittests/ExecutionEngine/Orc/ |
| H A D | MapperJITLinkMemoryManagerTest.cpp | 69 auto *Counter = static_cast<CounterMapper *>(Mapper.get()); in TEST() local 74 EXPECT_EQ(Counter->ReserveCount, 0); in TEST() 75 EXPECT_EQ(Counter->InitCount, 0); in TEST() 84 EXPECT_EQ(Counter->ReserveCount, 1); in TEST() 85 EXPECT_EQ(Counter->InitCount, 0); in TEST() 93 EXPECT_EQ(Counter->ReserveCount, 1); in TEST() 94 EXPECT_EQ(Counter->InitCount, 1); in TEST() 103 EXPECT_EQ(Counter->ReserveCount, 1); in TEST() 104 EXPECT_EQ(Counter->InitCount, 1); in TEST() 111 EXPECT_EQ(Counter in TEST() [all...] |
| /llvm-project/clang/test/CodeGen/ |
| H A D | windows-seh-filter-inFinally.c | 10 int Counter = 0; in main() local 15 Counter -= 1; in main() 19 Counter += 2; in main() 21 } __except(Counter) { in main() 23 Counter += 3; in main() 27 Counter += 5; in main()
|