P4C
The P4 Compiler
Loading...
Searching...
No Matches
bridge_metadata.h
1
18
19
#ifndef BF_P4C_ARCH_BRIDGE_METADATA_H_
20
#define BF_P4C_ARCH_BRIDGE_METADATA_H_
21
22
#include "backends/tofino/bf-p4c/arch/program_structure.h"
23
#include "backends/tofino/bf-p4c/ir/gress.h"
24
#include "backends/tofino/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
32
namespace
BFN
{
33
34
static
const
cstring
META =
"meta"
_cs;
35
static
const
cstring
COMPILER_META =
"__bfp4c_compiler_generated_meta"
_cs;
36
static
const
cstring
BRIDGED_MD =
"__bfp4c_bridged_metadata"
_cs;
37
static
const
cstring
BRIDGED_MD_HEADER =
"__bfp4c_bridged_metadata_header"
_cs;
38
static
const
cstring
BRIDGED_MD_FIELD =
"__bfp4c_fields"
_cs;
39
static
const
cstring
BRIDGED_MD_INDICATOR =
"__bfp4c_bridged_metadata_indicator"
_cs;
40
41
struct
AddTnaBridgeMetadata :
public
PassManager {
42
AddTnaBridgeMetadata(
P4::ReferenceMap
*refMap,
P4::TypeMap
*typeMap,
43
bool
&program_uses_bridge_metadata);
44
};
45
46
}
// namespace BFN
47
48
#endif
/* BF_P4C_ARCH_BRIDGE_METADATA_H_ */
P4::ReferenceMap
Class used to encode maps from paths to declarations.
Definition
referenceMap.h:66
P4::TypeMap
Definition
typeMap.h:41
P4::cstring
Definition
cstring.h:85
BFN
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition
add_t2na_meta.cpp:21
backends
tofino
bf-p4c
arch
bridge_metadata.h
Generated by
1.13.2