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
13class PropagateP4RuntimeTranslation : public Transform {
16 std::reference_wrapper<const P4::TypeMap> _typeMap;
17
19 static std::vector<const IR::Annotation *> lookupP4RuntimeAnnotations(
20 const P4::TypeMap &typeMap, const IR::Type *type);
21
22 const IR::Parameter *preorder(IR::Parameter *parameter) override;
23 const IR::KeyElement *preorder(IR::KeyElement *keyElement) override;
24
25 public:
26 explicit PropagateP4RuntimeTranslation(const P4::TypeMap &typeMap);
27};
28
29} // namespace P4Tools::P4Testgen::Bmv2
30
31#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_P4RUNTIME_TRANSLATION_H_ */
Definition typeMap.h:42
Definition p4runtime_translation.h:13
Inja.
Definition bmv2.cpp:25