diff options
author | clairexen <claire@symbioticeda.com> | 2020-05-31 20:40:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 20:40:48 +0200 |
commit | ff785cdb46d6b1ddc19d5acc21b4d1236b3adf3f (patch) | |
tree | 1cd1a2a26ed78e489b4945275a92bbb02f1b02d4 /passes/techmap/simplemap.cc | |
parent | fe273faad11d67b1473b966e606ca982b91afd85 (diff) | |
parent | 6eea4b3d79590f874caa3ec740785781f3926666 (diff) | |
download | yosys-ff785cdb46d6b1ddc19d5acc21b4d1236b3adf3f.tar.gz yosys-ff785cdb46d6b1ddc19d5acc21b4d1236b3adf3f.tar.bz2 yosys-ff785cdb46d6b1ddc19d5acc21b4d1236b3adf3f.zip |
Merge pull request #1862 from boqwxp/cleanup_techmap
Clean up `passes/techmap/techmap.cc`
Diffstat (limited to 'passes/techmap/simplemap.cc')
-rw-r--r-- | passes/techmap/simplemap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/techmap/simplemap.cc b/passes/techmap/simplemap.cc index b65b3e972..214157a64 100644 --- a/passes/techmap/simplemap.cc +++ b/passes/techmap/simplemap.cc @@ -522,7 +522,7 @@ void simplemap_dlatch(RTLIL::Module *module, RTLIL::Cell *cell) } } -void simplemap_get_mappers(std::map<RTLIL::IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> &mappers) +void simplemap_get_mappers(dict<IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> &mappers) { mappers[ID($not)] = simplemap_not; mappers[ID($pos)] = simplemap_pos; @@ -559,7 +559,7 @@ void simplemap_get_mappers(std::map<RTLIL::IdString, void(*)(RTLIL::Module*, RTL void simplemap(RTLIL::Module *module, RTLIL::Cell *cell) { - static std::map<RTLIL::IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> mappers; + static dict<IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> mappers; static bool initialized_mappers = false; if (!initialized_mappers) { @@ -595,7 +595,7 @@ struct SimplemapPass : public Pass { log_header(design, "Executing SIMPLEMAP pass (map simple cells to gate primitives).\n"); extra_args(args, 1, design); - std::map<RTLIL::IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> mappers; + dict<IdString, void(*)(RTLIL::Module*, RTLIL::Cell*)> mappers; simplemap_get_mappers(mappers); for (auto mod : design->modules()) { |