P4C
The P4 Compiler
Loading...
Searching...
No Matches
testgen/targets/tofino/register.h
1
/*******************************************************************************
2
* Copyright (C) 2024 Intel Corporation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing,
11
* software distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions
14
* and limitations under the License.
15
*
16
*
17
* SPDX-License-Identifier: Apache-2.0
18
******************************************************************************/
19
20
#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_REGISTER_H_
21
#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_REGISTER_H_
22
23
#include "backends/p4tools/common/p4ctool.h"
24
25
#include "backends/p4tools/modules/testgen/options.h"
26
#include "backends/p4tools/modules/testgen/targets/tofino/target.h"
27
#include "backends/p4tools/modules/testgen/testgen.h"
28
29
namespace
P4::P4Tools::P4Testgen {
30
32
inline
void
tofinoRegisterTestgenTarget() {
33
Tofino::Tofino_TnaTestgenTarget::make
();
34
Tofino::JBay_T2naTestgenTarget::make
();
35
}
36
37
}
// namespace P4::P4Tools::P4Testgen
38
39
#endif
/* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_REGISTER_H_ */
P4::P4Tools::P4Testgen::Tofino::JBay_T2naTestgenTarget::make
static void make()
Registers this target.
Definition
p4tools/modules/testgen/targets/tofino/target.cpp:223
P4::P4Tools::P4Testgen::Tofino::Tofino_TnaTestgenTarget::make
static void make()
Registers this target.
Definition
p4tools/modules/testgen/targets/tofino/target.cpp:142
backends
p4tools
modules
testgen
targets
tofino
register.h
Generated by
1.13.2