59 std::vector<cstring> stack;
65 setName(
"HierarchicalNames");
68 bool preorder(IR::P4Parser *parser)
override {
69 stack.push_back(getName(parser));
72 void postorder(IR::P4Parser *)
override { stack.pop_back(); }
74 bool preorder(IR::P4Control *control)
override {
75 stack.push_back(getName(control));
78 void postorder(IR::P4Control *)
override { stack.pop_back(); }
80 bool preorder(IR::P4Table *table)
override {
81 visit(table->annotations);
85 void postorder(IR::Annotation *annotation)
override;
87 bool preorder(IR::Parameter *)
override {
return false; }
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24