P4C
The P4 Compiler
Loading...
Searching...
No Matches
p4runtime_translation.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_P4RUNTIME_TRANSLATION_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_P4RUNTIME_TRANSLATION_H_
3#include <functional>
4
5#include "frontends/p4/typeMap.h"
6#include "ir/ir.h"
7#include "ir/visitor.h"
8
10
11using namespace P4::literals;
12
18 std::reference_wrapper<const P4::TypeMap> _typeMap;
19
21 static std::vector<const IR::Annotation *> lookupP4RuntimeAnnotations(
22 const P4::TypeMap &typeMap, const IR::Type *type);
23
24 const IR::Parameter *preorder(IR::Parameter *parameter) override;
25 const IR::KeyElement *preorder(IR::KeyElement *keyElement) override;
26
27 public:
28 explicit PropagateP4RuntimeTranslation(const P4::TypeMap &typeMap);
29};
30
31} // namespace P4::P4Tools::P4Testgen::Bmv2
32
33#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_P4RUNTIME_TRANSLATION_H_ */
Definition visitor.h:424
Definition typeMap.h:41
Inja.
Definition targets/bmv2/cmd_stepper.cpp:33
Definition cstring.h:80