mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 10:03:36 +02:00
twine: remove LeafIdString since it was designed to cope with lack of content hashing
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user