3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

dict/pool changes in opt_clean

This commit is contained in:
Clifford Wolf 2014-12-29 04:06:52 +01:00
parent 662cb549e4
commit 7d843adef9
2 changed files with 14 additions and 5 deletions

View file

@ -195,6 +195,15 @@ struct SigSet
}
}
void find(RTLIL::SigSpec sig, pool<T> &result)
{
for (auto &bit : sig)
if (bit.wire != NULL) {
auto &data = bits[bit];
result.insert(data.begin(), data.end());
}
}
std::set<T> find(RTLIL::SigSpec sig)
{
std::set<T> result;