P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::BMV2::Backend Class Referenceabstract

Backend is a the base class for SimpleSwitchBackend and PortableSwitchBackend. More...

#include <backend.h>

Inheritance diagram for P4::BMV2::Backend:
[legend]

Public Member Functions

 Backend (BMV2Options &options, P4::ReferenceMap *refMap, P4::TypeMap *typeMap, P4::ConvertEnums::EnumMapping *enumMap)
 
virtual void convert (const IR::ToplevelBlock *block)=0
 
void serialize (std::ostream &out) const
 

Public Attributes

P4::P4CoreLibrarycorelib
 
P4::ConvertEnums::EnumMapping * enumMap
 
BMV2::JsonObjectsjson
 
BMV2Optionsoptions
 
P4::ReferenceMaprefMap
 
const IR::ToplevelBlock * toplevel = nullptr
 
P4::TypeMaptypeMap
 

Detailed Description

Backend is a the base class for SimpleSwitchBackend and PortableSwitchBackend.

Member Function Documentation

◆ convert()

virtual void P4::BMV2::Backend::convert ( const IR::ToplevelBlock * block)
pure virtual