diff options
Diffstat (limited to 'common/base_arch.h')
-rw-r--r-- | common/base_arch.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/base_arch.h b/common/base_arch.h index fbafee99..c7d9f380 100644 --- a/common/base_arch.h +++ b/common/base_arch.h @@ -441,23 +441,23 @@ template <typename R> struct BaseArch : ArchAPI<R> // -------------------------------------------------------------- // These structures are used to provide default implementations of bel/wire/pip binding. Arches might want to - // replace them with their own, for example to use faster access structures than unordered_map. Arches might also + // replace them with their own, for example to use faster access structures than dict. Arches might also // want to add extra checks around these functions - std::unordered_map<BelId, CellInfo *> base_bel2cell; - std::unordered_map<WireId, NetInfo *> base_wire2net; - std::unordered_map<PipId, NetInfo *> base_pip2net; + dict<BelId, CellInfo *> base_bel2cell; + dict<WireId, NetInfo *> base_wire2net; + dict<PipId, NetInfo *> base_pip2net; // For the default cell/bel bucket implementations std::vector<IdString> cell_types; std::vector<BelBucketId> bel_buckets; - std::unordered_map<BelBucketId, std::vector<BelId>> bucket_bels; + dict<BelBucketId, std::vector<BelId>> bucket_bels; // Arches that want to use the default cell types and bel buckets *must* call these functions in their constructor bool cell_types_initialised = false; bool bel_buckets_initialised = false; void init_cell_types() { - std::unordered_set<IdString> bel_types; + pool<IdString> bel_types; for (auto bel : this->getBels()) bel_types.insert(this->getBelType(bel)); std::copy(bel_types.begin(), bel_types.end(), std::back_inserter(cell_types)); |