P4C
The P4 Compiler
Loading...
Searching...
No Matches
TC::PNAArchTC Class Reference
Inheritance diagram for TC::PNAArchTC:
[legend]

Public Member Functions

 PNAArchTC (const EbpfOptions &options, std::vector< EBPF::EBPFType * > &ebpfTypes, EBPF::XDPHelpProgram *xdp, EBPF::EBPFPipeline *pipeline, const ConvertToBackendIR *tcIR)
 
void emit (EBPF::CodeBuilder *builder) const override
 
void emitHeader (EBPF::CodeBuilder *builder) const override
 
void emitInstances (EBPF::CodeBuilder *builder) const override
 
void emitParser (EBPF::CodeBuilder *builder) const override
 
- Public Member Functions inherited from TC::PNAEbpfGenerator
 PNAEbpfGenerator (const EbpfOptions &options, std::vector< EBPF::EBPFType * > &ebpfTypes, EBPF::EBPFPipeline *pipeline, const ConvertToBackendIR *tcIR)
 
void emitCommonPreamble (EBPF::CodeBuilder *builder) const override
 
void emitGlobalHeadersMetadata (EBPF::CodeBuilder *builder) const override
 
void emitInternalStructures (EBPF::CodeBuilder *pBuilder) const override
 
void emitP4TCActionParam (EBPF::CodeBuilder *builder) const
 
void emitP4TCFilterFields (EBPF::CodeBuilder *builder) const
 
void emitPipelineInstances (EBPF::CodeBuilder *builder) const override
 
void emitPNAIncludes (EBPF::CodeBuilder *builder) const
 
void emitPreamble (EBPF::CodeBuilder *builder) const override
 
void emitTypes (EBPF::CodeBuilder *builder) const override
 
cstring getProgramName () const
 
- Public Member Functions inherited from EBPF::EbpfCodeGenerator
 EbpfCodeGenerator (const EbpfOptions &options, std::vector< EBPF::EBPFType * > &ebpfTypes)
 

Public Attributes

EBPF::XDPHelpProgramxdp
 
- Public Attributes inherited from TC::PNAEbpfGenerator
EBPF::EBPFPipelinepipeline
 
const ConvertToBackendIRtcIR
 
- Public Attributes inherited from EBPF::EbpfCodeGenerator
std::vector< EBPF::EBPFType * > ebpfTypes
 
const EbpfOptionsoptions
 

Member Function Documentation

◆ emit()

void TC::PNAArchTC::emit ( EBPF::CodeBuilder * builder) const
overridevirtual

Structure of a C Post Parser program for PNA

  1. Automatically generated comment
  2. Includes
  3. Headers, structs
  4. TC Pipeline program for post-parser.

Implements TC::PNAEbpfGenerator.

◆ emitHeader()

void TC::PNAArchTC::emitHeader ( EBPF::CodeBuilder * builder) const
overridevirtual

Implements TC::PNAEbpfGenerator.

◆ emitInstances()

void TC::PNAArchTC::emitInstances ( EBPF::CodeBuilder * builder) const
overridevirtual

Implements TC::PNAEbpfGenerator.

◆ emitParser()

void TC::PNAArchTC::emitParser ( EBPF::CodeBuilder * builder) const
overridevirtual

Structure of a C Parser program for PNA

  1. Automatically generated comment
  2. Includes
  3. BPF map definitions.
  4. TC Pipeline program for parser.

Implements TC::PNAEbpfGenerator.