3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-12 23:46:40 +00:00

driver: add --hash-seed

This commit is contained in:
Emil J. Tywoniak 2024-10-01 16:02:41 +02:00
parent d071489ab1
commit 953508f6d2
5 changed files with 21 additions and 35 deletions

View file

@ -169,8 +169,11 @@ public:
return !(*this == other);
}
int hash() const {
return mkhash(scope_name.hash(), hash_ptr_ops::hash(target));
Hasher hash_acc(Hasher h) const
{
h.acc(scope_name);
h.acc(target);
return h;
}
bool valid() const {