P4C
The P4 Compiler
Loading...
Searching...
No Matches
ubpfBackend.h
1/*
2 * Copyright 2019 Orange
3 * SPDX-FileCopyrightText: 2019 Orange
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef BACKENDS_UBPF_UBPFBACKEND_H_
9#define BACKENDS_UBPF_UBPFBACKEND_H_
10
11#include "backends/ebpf/ebpfOptions.h"
12#include "frontends/p4/evaluator/evaluator.h"
13#include "ir/ir.h"
14
15namespace P4::UBPF {
16
17void run_ubpf_backend(const EbpfOptions &options, const IR::ToplevelBlock *toplevel,
18 P4::ReferenceMap *refMap, P4::TypeMap *typeMap);
19std::string extract_file_name(const std::string &fullPath);
20
21} // namespace P4::UBPF
22
23#endif /* BACKENDS_UBPF_UBPFBACKEND_H_ */