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
17
namespace
P4::BMV2
{
18
19
class
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_ */
P4::BMV2::SimpleSwitchMidEnd::SimpleSwitchMidEnd
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
P4::CompilerOptions
Definition
frontends/common/options.h:31
P4::BMV2
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition
action.cpp:9
backends
bmv2
simple_switch
midend.h
Generated by
1.13.2