36 setName(
"DontcareArgs");
38 const IR::Node *postorder(IR::MethodCallExpression *expression)
override;
39 const IR::Node *postorder(IR::Function *function)
override {
41 for (
auto d : toAdd) body.push_back(d);
42 body.append(function->body->components);
43 function->body =
new IR::BlockStatement(function->body->srcInfo, body);
47 const IR::Node *postorder(IR::P4Action *action)
override {
49 for (
auto d : toAdd) body.push_back(d);
50 body.append(action->body->components);
51 action->body =
new IR::BlockStatement(action->body->srcInfo, body);
55 const IR::Node *postorder(IR::P4Parser *parser)
override {
56 toAdd.append(parser->parserLocals);
57 parser->parserLocals = toAdd;
61 const IR::Node *postorder(IR::P4Control *control)
override {
62 toAdd.append(control->controlLocals);
63 control->controlLocals = toAdd;
Visitor mixin for looking up names in enclosing scopes from the Visitor::Context.
Definition resolveReferences.h:35
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24