P4C
The P4 Compiler
Loading...
Searching...
No Matches
modules/testgen/targets/tofino/compiler_result.h
1/*
2 * SPDX-FileCopyrightText: 2025 The P4 Language Consortium
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_COMPILER_RESULT_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_COMPILER_RESULT_H_
9
10#include "backends/p4tools/modules/testgen/core/compiler_result.h"
11#include "backends/p4tools/modules/testgen/targets/tofino/map_direct_externs.h"
12
13namespace P4::P4Tools::P4Testgen::Tofino {
14
16class TofinoCompilerResult : public TestgenCompilerResult {
17 private:
19 DirectExternMap directExternMap;
20
21 public:
22 explicit TofinoCompilerResult(TestgenCompilerResult compilerResult,
23 DirectExternMap directExternMap);
24
26 [[nodiscard]] const DirectExternMap &getDirectExternMap() const;
27
28 DECLARE_TYPEINFO(TofinoCompilerResult, TestgenCompilerResult);
29};
30
31} // namespace P4::P4Tools::P4Testgen::Tofino
32
33#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_COMPILER_RESULT_H_ */
const DirectExternMap & getDirectExternMap() const
Definition modules/testgen/targets/tofino/compiler_result.cpp:16