P4C
The P4 Compiler
Loading...
Searching...
No Matches
smith.h
1#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_SMITH_H_
2#define BACKENDS_P4TOOLS_MODULES_SMITH_SMITH_H_
3
4#include <vector>
5
6#include "backends/p4tools/common/compiler/compiler_result.h"
7#include "backends/p4tools/common/p4ctool.h"
8#include "backends/p4tools/modules/smith/options.h"
9
10namespace P4::P4Tools::P4Smith {
11
12class Smith : public AbstractP4cTool<SmithOptions> {
13 protected:
14 void registerTarget() override;
15
16 int mainImpl(const CompilerResult &compilerResult) override;
17
18 public:
19 virtual ~Smith() = default;
20 int main(const std::vector<const char *> &args);
21};
22
23} // namespace P4::P4Tools::P4Smith
24
25#endif /* BACKENDS_P4TOOLS_MODULES_SMITH_SMITH_H_ */
Definition p4ctool.h:22
Definition common/compiler/compiler_result.h:14
Definition smith.h:12
int mainImpl(const CompilerResult &compilerResult) override
Definition smith.cpp:57