3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Replaced std::unordered_set (nodict) with Yosys::pool

This commit is contained in:
Clifford Wolf 2014-12-26 21:59:41 +01:00
parent 9e6fb0b02c
commit ec4751e55c
8 changed files with 394 additions and 137 deletions

View file

@ -91,10 +91,10 @@ struct DeletePass : public Pass {
continue;
}
nodict<RTLIL::Wire*> delete_wires;
nodict<RTLIL::Cell*> delete_cells;
nodict<RTLIL::IdString> delete_procs;
nodict<RTLIL::IdString> delete_mems;
pool<RTLIL::Wire*, hash_ptr_ops> delete_wires;
pool<RTLIL::Cell*, hash_ptr_ops> delete_cells;
pool<RTLIL::IdString> delete_procs;
pool<RTLIL::IdString> delete_mems;
for (auto &it : module->wires_)
if (design->selected(module, it.second))

View file

@ -176,7 +176,7 @@ struct SplitnetsPass : public Pass {
module->rewrite_sigspecs(worker);
nodict<RTLIL::Wire*> delete_wires;
pool<RTLIL::Wire*, hash_ptr_ops> delete_wires;
for (auto &it : worker.splitmap)
delete_wires.insert(it.first);
module->remove(delete_wires);

View file

@ -262,7 +262,7 @@ void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool verbos
}
nodict<RTLIL::Wire*> del_wires;
pool<RTLIL::Wire*, hash_ptr_ops> del_wires;
int del_wires_count = 0;
for (auto wire : maybe_del_wires)

View file

@ -28,11 +28,11 @@ PRIVATE_NAMESPACE_BEGIN
struct WreduceConfig
{
nodict<IdString> supported_cell_types;
pool<IdString> supported_cell_types;
WreduceConfig()
{
supported_cell_types = nodict<IdString>({
supported_cell_types = pool<IdString>({
"$not", "$pos", "$neg",
"$and", "$or", "$xor", "$xnor",
"$shl", "$shr", "$sshl", "$sshr", "$shift", "$shiftx",