P4C
The P4 Compiler
Loading...
Searching...
No Matches
targets/nic/expressions.h
1
#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_TARGETS_NIC_EXPRESSIONS_H_
2
#define BACKENDS_P4TOOLS_MODULES_SMITH_TARGETS_NIC_EXPRESSIONS_H_
3
4
#include "backends/p4tools/modules/smith/common/expressions.h"
5
#include "backends/p4tools/modules/smith/core/target.h"
6
7
namespace
P4::P4Tools::P4Smith {
8
9
class
NicExpressionGenerator
:
public
ExpressionGenerator
{
10
public
:
11
explicit
NicExpressionGenerator
(
SmithTarget
&parent) :
ExpressionGenerator
(parent) {}
12
13
[[nodiscard]] std::vector<int> availableBitWidths()
const override
{
14
return
{4, 8, 16, 32, 64};
15
}
16
};
17
18
}
// namespace P4::P4Tools::P4Smith
19
20
#endif
/* BACKENDS_P4TOOLS_MODULES_SMITH_TARGETS_NIC_EXPRESSIONS_H_ */
P4::P4Tools::P4Smith::ExpressionGenerator
Definition
common/expressions.h:48
P4::P4Tools::P4Smith::NicExpressionGenerator
Definition
targets/nic/expressions.h:9
P4::P4Tools::P4Smith::SmithTarget
Definition
p4tools/modules/smith/core/target.h:17
backends
p4tools
modules
smith
targets
nic
expressions.h
Generated by
1.12.0