mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Merge branch 'YosysHQ:main' into main
This commit is contained in:
commit
57bf3a6f51
21 changed files with 63 additions and 63 deletions
|
@ -47,7 +47,7 @@ struct DftTagWorker {
|
|||
bool operator<(const tag_set &other) const { return index < other.index; }
|
||||
bool operator==(const tag_set &other) const { return index == other.index; }
|
||||
|
||||
Hasher hash_into(Hasher h) const { h.eat(index); return h; }
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const { h.eat(index); return h; }
|
||||
|
||||
bool empty() const { return index == 0; }
|
||||
};
|
||||
|
|
|
@ -52,7 +52,7 @@ struct ExampleDtPass : public Pass
|
|||
return name == other.name && parameters == other.parameters;
|
||||
}
|
||||
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
h.eat(name);
|
||||
h.eat(parameters);
|
||||
return h;
|
||||
|
|
|
@ -46,7 +46,7 @@ struct EquivStructWorker
|
|||
parameters == other.parameters && port_sizes == other.port_sizes;
|
||||
}
|
||||
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
h.eat(type);
|
||||
h.eat(parameters);
|
||||
h.eat(port_sizes);
|
||||
|
|
|
@ -127,7 +127,7 @@ struct proc_dlatch_db_t
|
|||
return signal == other.signal && match == other.match && children == other.children;
|
||||
}
|
||||
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
h.eat(signal);
|
||||
h.eat(match);
|
||||
h.eat(children);
|
||||
|
|
|
@ -46,7 +46,7 @@ struct IdBit {
|
|||
|
||||
bool operator==(const IdBit &other) const { return name == other.name && bit == other.bit; };
|
||||
bool operator!=(const IdBit &other) const { return name != other.name || bit != other.bit; };
|
||||
Hasher hash_into(Hasher h) const
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const
|
||||
{
|
||||
h.eat(name);
|
||||
h.eat(bit);
|
||||
|
@ -64,7 +64,7 @@ struct InvBit {
|
|||
|
||||
bool operator==(const InvBit &other) const { return bit == other.bit && inverted == other.inverted; };
|
||||
bool operator!=(const InvBit &other) const { return bit != other.bit || inverted != other.inverted; };
|
||||
Hasher hash_into(Hasher h) const
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const
|
||||
{
|
||||
h.eat(bit);
|
||||
h.eat(inverted);
|
||||
|
|
|
@ -233,7 +233,7 @@ struct ClockgatePass : public Pass {
|
|||
SigBit ce_bit;
|
||||
bool pol_clk;
|
||||
bool pol_ce;
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
auto t = std::make_tuple(clk_bit, ce_bit, pol_clk, pol_ce);
|
||||
h.eat(t);
|
||||
return h;
|
||||
|
|
|
@ -250,7 +250,7 @@ struct FlowGraph
|
|||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
Hasher hash_into(Hasher h) const
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const
|
||||
{
|
||||
std::pair<RTLIL::SigBit, int> p = {node, is_bottom};
|
||||
h.eat(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue