P4C
The P4 Compiler
Loading...
Searching...
No Matches
targets/pna/dpdk/program_info.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_PROGRAM_INFO_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_PROGRAM_INFO_H_
3
4#include <cstddef>
5#include <vector>
6
7#include "ir/ir.h"
8#include "lib/cstring.h"
9#include "lib/ordered_map.h"
10
11#include "backends/p4tools/modules/testgen/lib/continuation.h"
12#include "backends/p4tools/modules/testgen/targets/pna/shared_program_info.h"
13
15
17 private:
20 std::vector<Continuation::Command> processDeclaration(const IR::Type_Declaration *typeDecl,
21 size_t blockIdx) const;
22
23 public:
24 PnaDpdkProgramInfo(const TestgenCompilerResult &compilerResult,
26
28 const ArchSpec &getArchSpec() const override;
29
31 static const ArchSpec ARCH_SPEC;
32
34};
35
36} // namespace P4::P4Tools::P4Testgen::Pna
37
38#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_PROGRAM_INFO_H_ */
Specifies a canonical representation of the target pipeline as documented in P4 code.
Definition p4tools/common/lib/arch_spec.h:13
Definition targets/pna/dpdk/program_info.h:16
static const ArchSpec ARCH_SPEC
Definition targets/pna/dpdk/program_info.h:31
PnaDpdkProgramInfo(const TestgenCompilerResult &compilerResult, ordered_map< cstring, const IR::Type_Declaration * > inputBlocks)
Definition targets/pna/dpdk/program_info.cpp:25
const ArchSpec & getArchSpec() const override
Definition targets/pna/dpdk/program_info.cpp:56
Definition shared_program_info.h:14
Extends the CompilerResult with the associated P4RuntimeApi.
Definition modules/testgen/core/compiler_result.h:11
Definition ordered_map.h:32
Inja.
Definition pna/backend/metadata/metadata.cpp:24