29#ifndef __PC_COUNT_PAIR_HH__
30#define __PC_COUNT_PAIR_HH__
79 std::string
s =
"(" + std::to_string(
pc)
80 +
"," + std::to_string(
count) +
")";
89 size_t xHash = std::hash<int>()(item.
pc);
90 size_t yHash = std::hash<int>()(item.
count);
91 return xHash * 2 + yHash;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
constexpr bool operator>(const PcCountPair &cc) const
Greater than comparison.
constexpr Addr getPC() const
Returns the Program Counter address.
std::string to_string() const
String format.
Addr pc
The Program Counter address.
PcCountPair()
Default constructor for parameter classes.
constexpr PcCountPair(Addr _pc, int _count)
Explicit constructor assigning the pc and count values.
constexpr int getCount() const
Returns the count of the Program.
int count
The count of the Program Counter address.
constexpr bool operator==(const PcCountPair &cc) const
Equal comparison.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Enable hashing for this parameter.
size_t operator()(const PcCountPair &item) const