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

Public Member Functions

virtual bool convertAsGlobal (ProgramStructure *, const IR::Declaration_Instance *)
 
virtual const IR::Statement * convertExternCall (ProgramStructure *, const IR::Declaration_Instance *, const IR::Primitive *)
 
virtual const IR::Declaration_Instance * convertExternInstance (ProgramStructure *, const IR::Declaration_Instance *, cstring, IR::IndexedVector< IR::Declaration > *)
 
virtual const IR::Type_Extern * convertExternType (ProgramStructure *, const IR::Type_Extern *, cstring)
 

Static Public Member Functions

static void addConverter (cstring type, ExternConverter *)
 
static bool cvtAsGlobal (ProgramStructure *s, const IR::Declaration_Instance *di)
 
static const IR::Statement * cvtExternCall (ProgramStructure *s, const IR::Declaration_Instance *di, const IR::Primitive *p)
 
static const IR::Declaration_Instance * cvtExternInstance (ProgramStructure *s, const IR::Declaration_Instance *di, cstring name, IR::IndexedVector< IR::Declaration > *scope)
 
static const IR::Type_Extern * cvtExternType (ProgramStructure *s, const IR::Type_Extern *e, cstring name)
 
static ExternConverterget (const IR::Declaration_Instance *ext)
 
static ExternConverterget (const IR::Type_Extern *type)
 
static ExternConverterget (cstring type)
 

Member Function Documentation

◆ addConverter()

void P4::P4V1::ExternConverter::addConverter ( cstring type,
ExternConverter * cvt )
static

register a converter for a p4_14 extern_type @type: extern_type that the converter works on