1#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_TARGETS_NIC_TARGET_H_
2#define BACKENDS_P4TOOLS_MODULES_SMITH_TARGETS_NIC_TARGET_H_
7#include "backends/p4tools/modules/smith/common/declarations.h"
8#include "backends/p4tools/modules/smith/common/expressions.h"
9#include "backends/p4tools/modules/smith/common/parser.h"
10#include "backends/p4tools/modules/smith/common/statements.h"
11#include "backends/p4tools/modules/smith/common/table.h"
12#include "backends/p4tools/modules/smith/core/target.h"
13#include "backends/p4tools/modules/smith/targets/nic/expressions.h"
16namespace P4::P4Tools::P4Smith::Nic {
31 [[nodiscard]] IR::P4Parser *generateMainParserBlock()
const;
32 [[nodiscard]] IR::P4Control *generatePreControlBlock()
const;
33 [[nodiscard]] IR::P4Control *generateMainControlBlock()
const;
34 [[nodiscard]] IR::P4Control *generateMainDeparserBlock()
const;
42 [[nodiscard]]
const IR::P4Program *generateP4Program()
const override;
45 return *_declarationGenerator;
49 return *_expressionGenerator;
53 return *_statementGenerator;
56 [[nodiscard]]
ParserGenerator &parserGenerator()
const override {
return *_parserGenerator; }
58 [[nodiscard]]
TableGenerator &tableGenerator()
const override {
return *_tableGenerator; }