P4C
The P4 Compiler
Loading...
Searching...
No Matches
add_metadata_parser_states.h
1
19#ifndef BF_P4C_ARCH_FROMV1_0_ADD_METADATA_PARSER_STATES_H_
20#define BF_P4C_ARCH_FROMV1_0_ADD_METADATA_PARSER_STATES_H_
21
22#include "ir/ir.h"
23#include "ir/pass_manager.h"
24
25namespace P4 {
26class ReferenceMap;
27class TypeMap;
28} // namespace P4
29
30namespace BFN {
31
33 IR::ParserState *tmp = nullptr;
34
35 bool no_phase0 = false, no_resubmit = false;
36 bool no_mirrored = false, no_bridged = false;
37
38 void skip_to_packet(IR::ParserState *state);
39 bool is_empty(IR::ParserState *state);
40 IR::Node *postorder(IR::ParserState *state) override;
41 IR::Node *postorder(IR::P4Parser *parser) override;
42};
43
48 bool use_bridge_metadata = false;
50};
51
52} // namespace BFN
53
54#endif /* BF_P4C_ARCH_FROMV1_0_ADD_METADATA_PARSER_STATES_H_ */
Definition node.h:95
Definition ir/pass_manager.h:40
Class used to encode maps from paths to declarations.
Definition referenceMap.h:66
Definition visitor.h:424
Definition typeMap.h:41
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24
Definition add_metadata_parser_states.h:47
Definition add_metadata_parser_states.h:32
void skip_to_packet(IR::ParserState *state)
Definition add_metadata_parser_states.cpp:36