P4C
The P4 Compiler
Loading...
Searching...
No Matches
backends/bmv2/pna_nic/options.h
1
/*
2
* Copyright 2024 Marvell Technology, Inc.
3
* SPDX-FileCopyrightText: 2024 Marvell Technology, Inc.
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef BACKENDS_BMV2_PNA_NIC_OPTIONS_H_
9
#define BACKENDS_BMV2_PNA_NIC_OPTIONS_H_
10
11
#include "backends/bmv2/pna_nic/midend.h"
12
#include "backends/bmv2/portable_common/options.h"
13
14
namespace
P4::BMV2
{
15
16
class
PnaNicOptions :
public
PortableOptions
{
17
public
:
18
PnaNicOptions() {
19
registerOption(
20
"--listMidendPasses"
,
nullptr
,
21
[
this
](
const
char
*) {
22
listMidendPasses =
true
;
23
loadIRFromJson
=
false
;
24
PnaNicMidEnd
midEnd(*
this
, outStream);
25
exit(0);
26
return
false
;
27
},
28
"[PnaNic back-end] Lists exact name of all midend passes.\n"
);
29
}
30
};
31
32
using
PnaNicContext =
P4CContextWithOptions<PnaNicOptions>
;
33
34
}
// namespace P4::BMV2
35
36
#endif
/* BACKENDS_BMV2_PNA_NIC_OPTIONS_H_ */
P4::BMV2::BMV2Options::loadIRFromJson
bool loadIRFromJson
Read from json.
Definition
backends/bmv2/common/options.h:25
P4::BMV2::PnaNicMidEnd
Definition
bmv2/pna_nic/midend.h:15
P4::BMV2::PortableOptions
Definition
backends/bmv2/portable_common/options.h:16
P4::P4CContextWithOptions
Definition
parser_options.h:170
P4::BMV2
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition
action.cpp:9
backends
bmv2
pna_nic
options.h
Generated by
1.13.2