P4C
The P4 Compiler
Loading...
Searching...
No Matches
backends/bmv2/portable_common/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_PORTABLE_COMMON_OPTIONS_H_
9#define BACKENDS_BMV2_PORTABLE_COMMON_OPTIONS_H_
10
11#include "backends/bmv2/common/options.h"
12#include "backends/bmv2/portable_common/midend.h"
13
14namespace P4::BMV2 {
15
16class PortableOptions : public BMV2Options {
17 public:
19 std::vector<const char *> *process(int argc, char *const argv[]) override;
20};
21
22} // namespace P4::BMV2
23
24#endif /* BACKENDS_BMV2_PORTABLE_COMMON_OPTIONS_H_ */
Definition backends/bmv2/portable_common/options.h:16
std::vector< const char * > * process(int argc, char *const argv[]) override
Process the command line arguments and set options accordingly.
Definition backends/bmv2/portable_common/options.cpp:10
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition action.cpp:9