22 ValidateValueSets() { setName(
"ValidateValueSets"); }
23 void postorder(
const IR::P4ValueSet *valueSet)
override {
24 if (!valueSet->size->is<IR::Constant>()) {
25 ::P4::error(ErrorType::ERR_EXPECTED,
"%1%: value_set size must be constant",
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:13
void error(const char *format, Args &&...args)
Report an error with the given message.
Definition lib/error.h:58