twine: remove LeafIdString since it was designed to cope with lack of content hashing

This commit is contained in:
Emil J. Tywoniak
2026-10-02 18:42:02 +02:00
parent 090ac110a8
commit ea4634ecee
65 changed files with 194 additions and 233 deletions
+4 -4
View File
@@ -101,7 +101,7 @@ bool scopeinfo_has_attribute(const RTLIL::Cell *scopeinfo, ScopeinfoAttrs attrs,
{
log_assert(scopeinfo->type == ID($scopeinfo));
TwinePool &twines = scopeinfo->twines();
LeafIdString key = twines.find(attr_prefix(attrs) + twines.unescaped_str(id));
IdString key = twines.find(attr_prefix(attrs) + twines.unescaped_str(id));
return key != IdString::Null && scopeinfo->has_attribute(key);
}
@@ -109,7 +109,7 @@ RTLIL::Const scopeinfo_get_attribute(const RTLIL::Cell *scopeinfo, ScopeinfoAttr
{
log_assert(scopeinfo->type == ID($scopeinfo));
TwinePool &twines = scopeinfo->twines();
LeafIdString key = twines.find(attr_prefix(attrs) + twines.unescaped_str(id));
IdString key = twines.find(attr_prefix(attrs) + twines.unescaped_str(id));
if (key == IdString::Null)
return RTLIL::Const();
auto found = scopeinfo->attributes.find(key);
@@ -118,9 +118,9 @@ RTLIL::Const scopeinfo_get_attribute(const RTLIL::Cell *scopeinfo, ScopeinfoAttr
return found->second;
}
dict<RTLIL::LeafIdString, RTLIL::Const> scopeinfo_attributes(const RTLIL::Cell *scopeinfo, ScopeinfoAttrs attrs)
dict<RTLIL::IdString, RTLIL::Const> scopeinfo_attributes(const RTLIL::Cell *scopeinfo, ScopeinfoAttrs attrs)
{
dict<RTLIL::LeafIdString, RTLIL::Const> attributes;
dict<RTLIL::IdString, RTLIL::Const> attributes;
const char *prefix = attr_prefix(attrs);
size_t prefix_len = strlen(prefix);