mirror of https://github.com/YosysHQ/yosys.git
Using dict<> and pool<> in alumacc pass
This commit is contained in:
parent
09b51cb375
commit
92dce21f6e
|
@ -98,9 +98,9 @@ struct AlumaccWorker
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
std::map<RTLIL::SigBit, int> bit_users;
|
dict<RTLIL::SigBit, int> bit_users;
|
||||||
std::map<RTLIL::SigSpec, maccnode_t*> sig_macc;
|
dict<RTLIL::SigSpec, maccnode_t*> sig_macc;
|
||||||
std::map<RTLIL::SigSig, std::set<alunode_t*>> sig_alu;
|
dict<RTLIL::SigSig, pool<alunode_t*, hash_ptr_ops>> sig_alu;
|
||||||
int macc_counter, alu_counter;
|
int macc_counter, alu_counter;
|
||||||
|
|
||||||
AlumaccWorker(RTLIL::Module *module) : module(module), sigmap(module)
|
AlumaccWorker(RTLIL::Module *module) : module(module), sigmap(module)
|
||||||
|
@ -215,7 +215,7 @@ struct AlumaccWorker
|
||||||
{
|
{
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
std::set<maccnode_t*> delete_nodes;
|
pool<maccnode_t*, hash_ptr_ops> delete_nodes;
|
||||||
|
|
||||||
for (auto &it : sig_macc)
|
for (auto &it : sig_macc)
|
||||||
{
|
{
|
||||||
|
@ -267,7 +267,7 @@ struct AlumaccWorker
|
||||||
|
|
||||||
void macc_to_alu()
|
void macc_to_alu()
|
||||||
{
|
{
|
||||||
std::set<maccnode_t*> delete_nodes;
|
pool<maccnode_t*, hash_ptr_ops> delete_nodes;
|
||||||
|
|
||||||
for (auto &it : sig_macc)
|
for (auto &it : sig_macc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue