mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 01:55:33 +00:00
Add specialized hash()
for type dict
and use a dict
instead of a std::map
for techmap_cache
and techmap_do_cache
.
This commit is contained in:
parent
437f3fb342
commit
2fb4931e5b
3 changed files with 25 additions and 10 deletions
|
@ -150,7 +150,7 @@ namespace RTLIL
|
|||
if (!p[0])
|
||||
return 0;
|
||||
|
||||
log_assert(p[0] == '$' || p[0] == '\\');
|
||||
log_assert(p[0] == '$' || p[0] == '\\' || strncmp(p, "_TECHMAP_", strlen("_TECHMAP_")) == 0);
|
||||
log_assert(p[1] != 0);
|
||||
|
||||
auto it = global_id_index_.find((char*)p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue