P4C
The P4 Compiler
Loading...
Searching...
No Matches
wred.h
1
19#ifndef BACKENDS_TOFINO_BF_P4C_ARCH_FROMV1_0_WRED_H_
20#define BACKENDS_TOFINO_BF_P4C_ARCH_FROMV1_0_WRED_H_
21
22#include "frontends/p4-14/fromv1.0/converters.h"
23
24namespace P4 {
25namespace P4V1 {
26
29 static WREDConverter singleton;
30
31 public:
32 const IR::Type_Extern *convertExternType(P4V1::ProgramStructure *, const IR::Type_Extern *,
33 cstring) override;
34 const IR::Declaration_Instance *convertExternInstance(
35 P4V1::ProgramStructure *, const IR::Declaration_Instance *, cstring,
37 const IR::Statement *convertExternCall(P4V1::ProgramStructure *,
38 const IR::Declaration_Instance *,
39 const IR::Primitive *) override;
40};
41
42} // namespace P4V1
43} // namespace P4
44
45#endif /* BACKENDS_TOFINO_BF_P4C_ARCH_FROMV1_0_WRED_H_ */
Definition node.h:52
Definition converters.h:97
Information about the structure of a P4-14 program, used to convert it to a P4-16 program.
Definition frontends/p4-14/fromv1.0/programStructure.h:45
Definition wred.h:27
Definition cstring.h:85
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24