P4C
The P4 Compiler
Loading...
Searching...
No Matches
ubpf/codeGen.h
1/*
2 * SPDX-FileCopyrightText: 2020 VMware, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_UBPF_CODEGEN_H_
8#define BACKENDS_UBPF_CODEGEN_H_
9
10#include "backends/ebpf/codeGen.h"
11#include "lib/sourceCodeBuilder.h"
12#include "target.h"
13
14namespace P4::UBPF {
15
16class UbpfCodeBuilder : public EBPF::CodeBuilder {
17 public:
18 const UbpfTarget *target;
19 explicit UbpfCodeBuilder(const UbpfTarget *target)
20 : EBPF::CodeBuilder(target), target(target) {}
21};
22
23} // namespace P4::UBPF
24
25#endif /* BACKENDS_UBPF_CODEGEN_H_ */
Definition ebpf/codeGen.h:33
Definition ubpf/target.h:21