P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::P4RuntimeSerializer Class Reference

Public APIs to generate P4Info message. Uses the singleton pattern. More...

#include <p4RuntimeSerializer.h>

Public Member Functions

P4RuntimeAPI generateP4Runtime (const IR::P4Program *program, cstring arch)
 
void registerArch (const cstring archName, const ControlPlaneAPI::P4RuntimeArchHandlerBuilderIface *builder)
 
void serializeP4RuntimeIfRequired (const IR::P4Program *program, const CompilerOptions &options)
 
void serializeP4RuntimeIfRequired (const P4RuntimeAPI &p4Runtime, const CompilerOptions &options)
 

Static Public Member Functions

static P4RuntimeSerializerget ()
 
static cstring resolveArch (const CompilerOptions &options)
 

Detailed Description

Public APIs to generate P4Info message. Uses the singleton pattern.