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
7namespace P4::P4Tools::P4Smith {
8
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_ */
Definition common/expressions.h:48
Definition targets/nic/expressions.h:9
Definition p4tools/modules/smith/core/target.h:17