mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
proc_clean: remove any empty cases if all cases use all-def compare.
This commit is contained in:
parent
b784440857
commit
18291c20d2
3 changed files with 42 additions and 6 deletions
|
@ -1227,6 +1227,8 @@ struct RTLIL::CaseRule
|
|||
~CaseRule();
|
||||
void optimize();
|
||||
|
||||
bool empty() const;
|
||||
|
||||
template<typename T> void rewrite_sigspecs(T &functor);
|
||||
RTLIL::CaseRule *clone() const;
|
||||
};
|
||||
|
@ -1238,6 +1240,8 @@ struct RTLIL::SwitchRule : public RTLIL::AttrObject
|
|||
|
||||
~SwitchRule();
|
||||
|
||||
bool empty() const;
|
||||
|
||||
template<typename T> void rewrite_sigspecs(T &functor);
|
||||
RTLIL::SwitchRule *clone() const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue