P4C
The P4 Compiler
Loading...
Searching...
No Matches
targets/pna/dpdk/program_info.h
1/*
2 * SPDX-FileCopyrightText: 2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_PROGRAM_INFO_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_PROGRAM_INFO_H_
9
10#include <cstddef>
11#include <vector>
12
13#include "ir/ir.h"
14#include "lib/cstring.h"
15#include "lib/ordered_map.h"
16
17#include "backends/p4tools/modules/testgen/lib/continuation.h"
18#include "backends/p4tools/modules/testgen/targets/pna/shared_program_info.h"
19
21
22class PnaDpdkProgramInfo : public SharedPnaProgramInfo {
23 private:
26 std::vector<Continuation::Command> processDeclaration(const IR::Type_Declaration *typeDecl,
27 size_t blockIdx) const;
28
29 public:
30 PnaDpdkProgramInfo(const TestgenCompilerResult &compilerResult,
32
34 const ArchSpec &getArchSpec() const override;
35
37 static const ArchSpec ARCH_SPEC;
38
39 DECLARE_TYPEINFO(PnaDpdkProgramInfo, SharedPnaProgramInfo);
40};
41
42} // namespace P4::P4Tools::P4Testgen::Pna
43
44#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:19
static const ArchSpec ARCH_SPEC
Definition targets/pna/dpdk/program_info.h:37
PnaDpdkProgramInfo(const TestgenCompilerResult &compilerResult, ordered_map< cstring, const IR::Type_Declaration * > inputBlocks)
Definition targets/pna/dpdk/program_info.cpp:29
const ArchSpec & getArchSpec() const override
Definition targets/pna/dpdk/program_info.cpp:60
Extends the CompilerResult with the associated P4RuntimeApi.
Definition modules/testgen/core/compiler_result.h:17
Definition ordered_map.h:32
Inja.
Definition pna/backend/metadata/metadata.cpp:28