mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 05:43:40 +00:00
hashlib: redo interface for flexibility
This commit is contained in:
parent
7a362f1f74
commit
d071489ab1
35 changed files with 542 additions and 386 deletions
|
@ -322,7 +322,7 @@ struct ModuleItem {
|
|||
Cell *cell() const { return type == Type::Cell ? static_cast<Cell *>(ptr) : nullptr; }
|
||||
|
||||
bool operator==(const ModuleItem &other) const { return ptr == other.ptr && type == other.type; }
|
||||
unsigned int hash() const { return (uintptr_t)ptr; }
|
||||
Hasher hash_acc(Hasher h) const { h.acc(ptr); return h; }
|
||||
};
|
||||
|
||||
static inline void log_dump_val_worker(typename IdTree<ModuleItem>::Cursor cursor ) { log("%p %s", cursor.target, log_id(cursor.scope_name)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue