P4C
The P4 Compiler
Loading...
Searching...
No Matches
modules/testgen/targets/tofino/compiler_result.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_COMPILER_RESULT_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_COMPILER_RESULT_H_
3
4#include "backends/p4tools/modules/testgen/core/compiler_result.h"
5#include "backends/p4tools/modules/testgen/targets/tofino/map_direct_externs.h"
6
7namespace P4::P4Tools::P4Testgen::Tofino {
8
10class TofinoCompilerResult : public TestgenCompilerResult {
11 private:
13 DirectExternMap directExternMap;
14
15 public:
16 explicit TofinoCompilerResult(TestgenCompilerResult compilerResult,
17 DirectExternMap directExternMap);
18
20 [[nodiscard]] const DirectExternMap &getDirectExternMap() const;
21
22 DECLARE_TYPEINFO(TofinoCompilerResult, TestgenCompilerResult);
23};
24
25} // namespace P4::P4Tools::P4Testgen::Tofino
26
27#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_COMPILER_RESULT_H_ */
const DirectExternMap & getDirectExternMap() const
Definition modules/testgen/targets/tofino/compiler_result.cpp:12