3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-13 02:34:44 +00:00

Use set for strpool_attribute to maintain ordering, but keep some backwards compatibility

This commit is contained in:
Akash Levy 2025-03-05 03:28:19 -08:00
parent 3a67468860
commit 8117ab228e
4 changed files with 16 additions and 2 deletions

View file

@ -857,6 +857,7 @@ struct RTLIL::AttrObject
void set_strpool_attribute(const RTLIL::IdString& id, const std::set<string> &data);
void add_strpool_attribute(const RTLIL::IdString& id, const std::set<string> &data);
void add_strpool_attribute(const RTLIL::IdString& id, const pool<string> &data);
std::set<string> get_strpool_attribute(const RTLIL::IdString &id) const;
void set_src_attribute(const std::string &src) {