diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-12-27 03:04:50 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-12-27 03:04:50 +0100 |
commit | 66ab88d7b0636c21d5df74f753ed379a799fd783 (patch) | |
tree | c8f96817b4926e4e938e0c732e240363b89d4bec /kernel/rtlil.h | |
parent | 88d08e8f24cb2d43907a9d28d65fedc9638554ca (diff) |
More hashtable finetuning
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index ae37c350..c50a5861 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -708,6 +708,8 @@ struct RTLIL::Selection struct RTLIL::Monitor { + RTLIL::IdString name; + Monitor() { name = stringf("$%d", autoidx++); } virtual ~Monitor() { } virtual void notify_module_add(RTLIL::Module*) { } virtual void notify_module_del(RTLIL::Module*) { } @@ -719,7 +721,7 @@ struct RTLIL::Monitor struct RTLIL::Design { - pool<RTLIL::Monitor*, hash_ptr_ops> monitors; + pool<RTLIL::Monitor*, hash_obj_ops> monitors; dict<std::string, std::string> scratchpad; int refcount_modules_; @@ -806,7 +808,7 @@ protected: public: RTLIL::Design *design; - pool<RTLIL::Monitor*, hash_ptr_ops> monitors; + pool<RTLIL::Monitor*, hash_obj_ops> monitors; int refcount_wires_; int refcount_cells_; @@ -860,7 +862,7 @@ public: RTLIL::ObjRange<RTLIL::Cell*> cells() { return RTLIL::ObjRange<RTLIL::Cell*>(&cells_, &refcount_cells_); } // Removing wires is expensive. If you have to remove wires, remove them all at once. - void remove(const pool<RTLIL::Wire*, hash_ptr_ops> &wires); + void remove(const pool<RTLIL::Wire*, hash_obj_ops> &wires); void remove(RTLIL::Cell *cell); void rename(RTLIL::Wire *wire, RTLIL::IdString new_name); |