8#ifndef BACKENDS_DPDK_OPTIONS_H_
9#define BACKENDS_DPDK_OPTIONS_H_
11#include "backends/dpdk/midend.h"
15class DpdkOptions :
public CompilerOptions {
17 std::filesystem::path bfRtSchema;
33 "--listMidendPasses",
nullptr,
34 [
this](
const char *) {
35 listMidendPasses =
true;
40 "[Dpdk back-end] Lists exact name of all midend passes.\n");
42 "--enableEgress",
nullptr,
43 [
this](
const char *) {
50 "--bf-rt-schema",
"file",
51 [
this](
const char *arg) {
55 "Generate and write BF-RT JSON schema to the specified file");
58 [
this](
const char *arg) {
62 "Write output to outfile");
64 "--tdi-builder-conf",
"file",
65 [
this](
const char *arg) {
69 "Generate and write the TDI builder configuration to the specified file");
72 [
this](
const char *arg) {
76 "Generate and write TDI JSON to the specified file");
79 [
this](
const char *arg) {
83 "Generate and write context JSON to the specified file");
86 [
this](
const char *arg) {
91 "Use IR representation from JsonFile dumped previously,"
92 "the compilation starts with reduced midEnd.");
96 std::vector<const char *> *
process(
int argc,
char *
const argv[])
override;
98 const char *getIncludePath()
const override;
Definition dpdk/midend.h:17
bool loadIRFromJson
Read from JSON.
Definition backends/dpdk/options.h:27
bool enableEgress
Enable/disable Egress pipeline in PSA.
Definition backends/dpdk/options.h:29
std::filesystem::path ctxtFile
File to output context JSON to.
Definition backends/dpdk/options.h:23
std::filesystem::path tdiFile
File to output TDI JSON to.
Definition backends/dpdk/options.h:21
std::vector< const char * > * process(int argc, char *const argv[]) override
Process the command line arguments and set options accordingly.
Definition backends/dpdk/options.cpp:14
std::filesystem::path outputFile
File to output to.
Definition backends/dpdk/options.h:19
std::filesystem::path tdiBuilderConf
File to output the TDI builder configuration to.
Definition backends/dpdk/options.h:25
Definition parser_options.h:170
std::filesystem::path file
file to compile (- for stdin)
Definition parser_options.h:74
@ Hide
Hide this option from –help message.
Definition lib/options.h:41
Definition dpdk/backend.cpp:26