31 ValidateValueSets() { setName(
"ValidateValueSets"); }
32 void postorder(
const IR::P4ValueSet *valueSet)
override {
33 if (!valueSet->size->is<IR::Constant>()) {
34 ::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:24
void error(const char *format, Args &&...args)
Report an error with the given message.
Definition error.h:51