17#ifndef BACKENDS_EBPF_PSA_EBPFPSAPARSER_H_
18#define BACKENDS_EBPF_PSA_EBPFPSAPARSER_H_
20#include "backends/ebpf/ebpfParser.h"
21#include "backends/ebpf/ebpfType.h"
22#include "backends/ebpf/psa/ebpfPsaTable.h"
23#include "backends/ebpf/psa/externs/ebpfPsaChecksum.h"
42 std::map<cstring, EBPFChecksumPSA *> checksums;
43 const IR::Parameter *inputMetadata;
50 void emitDeclaration(
CodeBuilder *builder,
const IR::Declaration *decl)
override;
51 void emitRejectState(
CodeBuilder *builder)
override;
54 auto result = ::P4::get(checksums, name);
55 BUG_CHECK(result !=
nullptr,
"No checksum named %1%", name);
Definition ebpf/codeGen.h:33
Definition ebpfPsaChecksum.h:25
Definition ebpfParser.h:79
Definition ebpfProgram.h:39
Definition ebpfPsaParser.h:40
Definition ebpfPsaParser.h:29
Definition ebpfParser.h:31
Definition methodInstance.h:168
Class used to encode maps from paths to declarations.
Definition referenceMap.h:66
Definition codeGen.cpp:25