summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-14 10:01:30 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-14 10:01:30 +0200
commitaab0e3bf702640806c6e81d42e922f938b0e0085 (patch)
tree352d494b6b89cd885c1d6fe1991e7b3e4ad4ef4e
parent3ae96f85a5528414eee458e8aa992aae90ceba7d (diff)
Cleanup in wreduce
-rw-r--r--passes/opt/wreduce.cc19
1 files changed, 8 insertions, 11 deletions
diff --git a/passes/opt/wreduce.cc b/passes/opt/wreduce.cc
index 321a1aa5..9e43bb90 100644
--- a/passes/opt/wreduce.cc
+++ b/passes/opt/wreduce.cc
@@ -26,23 +26,20 @@ using namespace RTLIL;
PRIVATE_NAMESPACE_BEGIN
-static inline std::set<IdString> &operator<<(std::set<IdString> &set, IdString id) {
- set.insert(id);
- return set;
-}
-
struct WreduceConfig
{
std::set<IdString> supported_cell_types;
WreduceConfig()
{
- supported_cell_types << "$not" << "$pos" << "$neg";
- supported_cell_types << "$and" << "$or" << "$xor" << "$xnor";
- supported_cell_types << "$shl" << "$shr" << "$sshl" << "$sshr" << "$shift" << "$shiftx";
- supported_cell_types << "$lt" << "$le" << "$eq" << "$ne" << "$eqx" << "$nex" << "$ge" << "$gt";
- supported_cell_types << "$add" << "$sub"; // << "$mul" << "$div" << "$mod" << "$pow"
- supported_cell_types << "$mux" << "$pmux";
+ supported_cell_types = {
+ "$not", "$pos", "$neg",
+ "$and", "$or", "$xor", "$xnor",
+ "$shl", "$shr", "$sshl", "$sshr", "$shift", "$shiftx",
+ "$lt", "$le", "$eq", "$ne", "$eqx", "$nex", "$ge", "$gt",
+ "$add", "$sub", // "$mul", "$div", "$mod", "$pow",
+ "$mux", "$pmux"
+ };
}
};