30 bool checkOptionalParameters(
const IR::ParameterList *params);
36 bool preorder(
const IR::MethodCallExpression *call)
override {
37 return checkArguments(call->arguments);
39 bool preorder(
const IR::Declaration_Instance *call)
override {
40 return checkArguments(call->arguments);
42 bool preorder(
const IR::Parameter *parameter)
override;
43 bool preorder(
const IR::P4Control *control)
override {
44 return checkOptionalParameters(control->getConstructorParameters());
46 bool preorder(
const IR::P4Parser *parser)
override {
47 return checkOptionalParameters(parser->getConstructorParameters());
49 bool preorder(
const IR::Function *function)
override {
50 return checkOptionalParameters(function->getParameters());
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24