P4C
The P4 Compiler
Loading...
Searching...
No Matches
bmv2/simple_switch/midend.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_BMV2_SIMPLE_SWITCH_MIDEND_H_
9#define BACKENDS_BMV2_SIMPLE_SWITCH_MIDEND_H_
10
11#include "backends/bmv2/common/midend.h"
12#include "backends/bmv2/common/options.h"
13#include "frontends/common/options.h"
14#include "ir/ir.h"
15#include "midend/convertEnums.h"
16
17namespace P4::BMV2 {
18
19class SimpleSwitchMidEnd : public MidEnd {
20 public:
22 explicit SimpleSwitchMidEnd(CompilerOptions &options, std::ostream *outStream = nullptr);
23};
24
25} // namespace P4::BMV2
26
27#endif /* BACKENDS_BMV2_SIMPLE_SWITCH_MIDEND_H_ */
SimpleSwitchMidEnd(CompilerOptions &options, std::ostream *outStream=nullptr)
If p4c is run with option '–listMidendPasses', outStream is used for printing passes names.
Definition bmv2/simple_switch/midend.cpp:62
Definition frontends/common/options.h:31
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition action.cpp:9