P4C
The P4 Compiler
Loading...
Searching...
No Matches
p4test.h
1/*
2 * SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
3 * Copyright 2013-present Barefoot Networks, Inc.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef BACKENDS_P4TEST_P4TEST_H_
9#define BACKENDS_P4TEST_P4TEST_H_
10
11#include "frontends/common/options.h"
12
13using namespace P4;
14
15class P4TestOptions : public CompilerOptions {
16 public:
17 bool parseOnly = false;
18 bool validateOnly = false;
19 bool loadIRFromJson = false;
20 bool preferSwitch = false;
21 bool keepTuples = false; // keep tuples but flatten assignments of them
22 P4TestOptions();
23};
24
25#endif /* BACKENDS_P4TEST_P4TEST_H_ */
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:13