mirror of https://github.com/YosysHQ/yosys.git
Cleanup in wreduce
This commit is contained in:
parent
3ae96f85a5
commit
aab0e3bf70
|
@ -26,23 +26,20 @@ using namespace RTLIL;
|
||||||
|
|
||||||
PRIVATE_NAMESPACE_BEGIN
|
PRIVATE_NAMESPACE_BEGIN
|
||||||
|
|
||||||
static inline std::set<IdString> &operator<<(std::set<IdString> &set, IdString id) {
|
|
||||||
set.insert(id);
|
|
||||||
return set;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct WreduceConfig
|
struct WreduceConfig
|
||||||
{
|
{
|
||||||
std::set<IdString> supported_cell_types;
|
std::set<IdString> supported_cell_types;
|
||||||
|
|
||||||
WreduceConfig()
|
WreduceConfig()
|
||||||
{
|
{
|
||||||
supported_cell_types << "$not" << "$pos" << "$neg";
|
supported_cell_types = {
|
||||||
supported_cell_types << "$and" << "$or" << "$xor" << "$xnor";
|
"$not", "$pos", "$neg",
|
||||||
supported_cell_types << "$shl" << "$shr" << "$sshl" << "$sshr" << "$shift" << "$shiftx";
|
"$and", "$or", "$xor", "$xnor",
|
||||||
supported_cell_types << "$lt" << "$le" << "$eq" << "$ne" << "$eqx" << "$nex" << "$ge" << "$gt";
|
"$shl", "$shr", "$sshl", "$sshr", "$shift", "$shiftx",
|
||||||
supported_cell_types << "$add" << "$sub"; // << "$mul" << "$div" << "$mod" << "$pow"
|
"$lt", "$le", "$eq", "$ne", "$eqx", "$nex", "$ge", "$gt",
|
||||||
supported_cell_types << "$mux" << "$pmux";
|
"$add", "$sub", // "$mul", "$div", "$mod", "$pow",
|
||||||
|
"$mux", "$pmux"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue