17#ifndef BACKENDS_EBPF_PSA_EXTERNS_EBPFPSACHECKSUM_H_
18#define BACKENDS_EBPF_PSA_EXTERNS_EBPFPSACHECKSUM_H_
20#include "backends/ebpf/ebpfObject.h"
21#include "ebpfPsaHashAlgorithm.h"
28 const IR::Declaration_Instance *declaration;
44 const IR::MethodCallExpression *expr,
Visitor *visitor);
52 EBPFHashAlgorithmPSA::HashAlgorithm::ONES_COMPLEMENT16) {}
54 void processMethod(
CodeBuilder *builder,
cstring method,
const IR::MethodCallExpression *expr,
63 void processMethod(
CodeBuilder *builder,
cstring method,
const IR::MethodCallExpression *expr,
69 void emitGetMethod(
CodeBuilder *builder,
const IR::MethodCallExpression *expr,
Definition ebpf/codeGen.h:33
Definition ebpfPsaChecksum.h:25
Definition ebpfPsaHashAlgorithm.h:26
virtual void emitVariables(CodeBuilder *builder, const IR::Declaration_Instance *decl)=0
decl might be a null pointer
Definition ebpfPsaChecksum.h:58
void calculateHash(CodeBuilder *builder, const IR::MethodCallExpression *expr, Visitor *visitor)
This method calculates a hash value and saves it to the registerVar.
Definition ebpfPsaChecksum.cpp:100
Definition ebpfPsaChecksum.h:47
Base class for EBPF objects.
Definition ebpfObject.h:31
Definition ebpfProgram.h:39
Definition codeGen.cpp:25