27 const IR::MAU::Table *postorder(IR::MAU::Table *tbl)
override {
28 if (tbl->next.count(
"$default"_cs)) {
29 auto def = tbl->next.at(
"$default"_cs);
30 if (def->tables.empty()) tbl->next.erase(
"$default"_cs);
32 for (
auto it = tbl->next.begin(); it != tbl->next.end();) {
33 if (it->second->tables.empty())
34 it = tbl->next.erase(it);
39 if (tbl->conditional_gateway_only() && tbl->next.empty())
return nullptr;
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24