1#ifndef FRONTENDS_P4_OPTIMIZEEXPRESSIONS_H_
2#define FRONTENDS_P4_OPTIMIZEEXPRESSIONS_H_
4#include "frontends/common/constantFolding.h"
5#include "frontends/p4/strengthReduction.h"
16 node = node->apply(pass);
17 BUG_CHECK(
::P4::errorCount() == 0,
"Encountered errors while trying to optimize expressions.");
Definition constantFolding.h:186
Definition ir/pass_manager.h:145
Definition strengthReduction.h:121
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24
const IR::Expression * optimizeExpression(const IR::Expression *node)
Definition optimizeExpressions.h:11
unsigned errorCount()
Definition lib/error.h:35