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
8namespace P4::P4Tools {
9
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_ */
Definition ir/configuration.h:33
Definition backends/p4tools/common/compiler/configuration.h:12
int maximumWidthSupported() const override
Maximum width supported for a bit field or integer.
Definition backends/p4tools/common/compiler/configuration.h:14
static const CompilerConfiguration & get()
Definition backends/p4tools/common/compiler/configuration.h:17
Definition common/compiler/compiler_result.cpp:3