P4C
The P4 Compiler
Loading...
Searching...
No Matches
bridge_metadata.h
1
19#ifndef BF_P4C_ARCH_BRIDGE_METADATA_H_
20#define BF_P4C_ARCH_BRIDGE_METADATA_H_
21
22#include "bf-p4c/arch/program_structure.h"
23#include "bf-p4c/ir/gress.h"
24#include "bf-p4c/midend/path_linearizer.h"
25#include "frontends/common/resolveReferences/resolveReferences.h"
26#include "frontends/p4/evaluator/evaluator.h"
27#include "ir/ir.h"
28#include "ir/namemap.h"
29#include "lib/ordered_set.h"
30#include "midend/eliminateSerEnums.h"
31
32namespace BFN {
33
34static const cstring META = "meta"_cs;
35static const cstring COMPILER_META = "__bfp4c_compiler_generated_meta"_cs;
36static const cstring BRIDGED_MD = "__bfp4c_bridged_metadata"_cs;
37static const cstring BRIDGED_MD_HEADER = "__bfp4c_bridged_metadata_header"_cs;
38static const cstring BRIDGED_MD_FIELD = "__bfp4c_fields"_cs;
39static const cstring BRIDGED_MD_INDICATOR = "__bfp4c_bridged_metadata_indicator"_cs;
40
43 bool &program_uses_bridge_metadata);
44};
45
46} // namespace BFN
47
48#endif /* BF_P4C_ARCH_BRIDGE_METADATA_H_ */
Definition ir/pass_manager.h:40
Class used to encode maps from paths to declarations.
Definition referenceMap.h:66
Definition typeMap.h:41
Definition cstring.h:85
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21
Definition bridge_metadata.h:41