1
0
mirror of synced 2026-04-04 22:06:48 +00:00

Merge pull request #4805 from YosysHQ/hash_scopeindex

add hash method to scopeindex cursor
This commit is contained in:
Miodrag Milanović
2024-12-06 11:48:55 +01:00
committed by GitHub

View File

@@ -169,6 +169,10 @@ public:
return !(*this == other);
}
int hash() const {
return mkhash(scope_name.hash(), hash_ptr_ops::hash(target));
}
bool valid() const {
return target != nullptr;
}