P4C
The P4 Compiler
Loading...
Searching...
No Matches
backends/p4tools/common/compiler/configuration.h
1
#ifndef BACKENDS_P4TOOLS_COMMON_COMPILER_CONFIGURATION_H_
2
#define BACKENDS_P4TOOLS_COMMON_COMPILER_CONFIGURATION_H_
3
4
#include <climits>
5
6
#include "ir/configuration.h"
7
8
namespace
P4::P4Tools
{
9
12
class
CompilerConfiguration
:
public
DefaultP4CConfiguration
{
13
public
:
14
[[nodiscard]]
int
maximumWidthSupported
()
const override
{
return
INT_MAX; }
15
17
static
const
CompilerConfiguration
&
get
() {
18
static
CompilerConfiguration
instance;
19
return
instance;
20
}
21
virtual
~CompilerConfiguration
() =
default
;
22
23
protected
:
24
CompilerConfiguration
() =
default
;
25
};
26
27
}
// namespace P4::P4Tools
28
29
#endif
/* BACKENDS_P4TOOLS_COMMON_COMPILER_CONFIGURATION_H_ */
P4::DefaultP4CConfiguration
Definition
ir/configuration.h:33
P4::P4Tools::CompilerConfiguration
Definition
backends/p4tools/common/compiler/configuration.h:12
P4::P4Tools::CompilerConfiguration::maximumWidthSupported
int maximumWidthSupported() const override
Maximum width supported for a bit field or integer.
Definition
backends/p4tools/common/compiler/configuration.h:14
P4::P4Tools::CompilerConfiguration::get
static const CompilerConfiguration & get()
Definition
backends/p4tools/common/compiler/configuration.h:17
P4::P4Tools
Definition
common/compiler/compiler_result.cpp:3
backends
p4tools
common
compiler
configuration.h
Generated by
1.12.0