17#ifndef FRONTENDS_P4_SIMPLIFYSWITCH_H_
18#define FRONTENDS_P4_SIMPLIFYSWITCH_H_
20#include "frontends/common/resolveReferences/resolveReferences.h"
21#include "frontends/p4/typeChecking/typeChecker.h"
31 bool matches(
const IR::Expression *left,
const IR::Expression *right)
const;
35 setName(
"DoSimplifySwitch");
39 const IR::Node *postorder(IR::SwitchStatement *stat)
override;
47 setName(
"SimplifySwitch");
Simplify select and switch statements that have constant arguments.
Definition simplifySwitch.h:28
Definition ir/pass_manager.h:40
Definition simplifySwitch.h:42
Definition typeChecker.h:55
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24