Replace `std::map` with `dict` for `connbits_map`, `cell_to_inbit`, and `outbit_to_cell`.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Sun, 19 Apr 2020 22:38:10 +0000 (22:38 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Thu, 14 May 2020 20:06:54 +0000 (20:06 +0000)
passes/techmap/techmap.cc

index 3a68d3cb98f4aa363a8dab4e393b773a06973025..96508845d4f3571d56e21bcf7c2fc9ea93b7489d 100644 (file)
@@ -101,7 +101,7 @@ struct TechmapWorker
        std::string constmap_tpl_name(SigMap &sigmap, RTLIL::Module *tpl, RTLIL::Cell *cell, bool verbose)
        {
                std::string constmap_info;
-               std::map<RTLIL::SigBit, std::pair<IdString, int>> connbits_map;
+               dict<RTLIL::SigBit, std::pair<IdString, int>> connbits_map;
 
                for (auto conn : cell->connections())
                        for (int i = 0; i < GetSize(conn.second); i++) {
@@ -490,8 +490,8 @@ struct TechmapWorker
                }
 
                TopoSort<RTLIL::Cell*, IdString::compare_ptr_by_name<RTLIL::Cell>> cells;
-               std::map<RTLIL::Cell*, std::set<RTLIL::SigBit>> cell_to_inbit;
-               std::map<RTLIL::SigBit, std::set<RTLIL::Cell*>> outbit_to_cell;
+               dict<RTLIL::Cell*, std::set<RTLIL::SigBit>> cell_to_inbit;
+               dict<RTLIL::SigBit, std::set<RTLIL::Cell*>> outbit_to_cell;
 
                for (auto cell : module->selected_cells())
                {