P4C
The P4 Compiler
Loading...
Searching...
No Matches
BFN::Register Struct Reference

The information about a register instance which is needed to serialize it. More...

#include <bfruntime_arch_handler.h>

Static Public Member Functions

static std::optional< Registerfrom (const IR::ExternBlock *instance, const ReferenceMap *refMap, TypeMap *typeMap, p4configv1::P4TypeInfo *p4RtTypeInfo)
 
static std::optional< RegisterfromDirect (const P4::ExternInstance &instance, const IR::P4Table *table, const ReferenceMap *refMap, TypeMap *typeMap, p4configv1::P4TypeInfo *p4RtTypeInfo)
 

Public Attributes

const IR::IAnnotated * annotations
 
const cstring name
 
int64_t size
 
const p4configv1::P4DataTypeSpec * typeSpec
 

Detailed Description

The information about a register instance which is needed to serialize it.

Member Function Documentation

◆ from()

static std::optional< Register > BFN::Register::from ( const IR::ExternBlock * instance,
const ReferenceMap * refMap,
TypeMap * typeMap,
p4configv1::P4TypeInfo * p4RtTypeInfo )
inlinestatic
Returns
the information required to serialize an instance of register or std::nullopt in case of error.

◆ fromDirect()

static std::optional< Register > BFN::Register::fromDirect ( const P4::ExternInstance & instance,
const IR::P4Table * table,
const ReferenceMap * refMap,
TypeMap * typeMap,
p4configv1::P4TypeInfo * p4RtTypeInfo )
inlinestatic
Returns
the information required to serialize an instance of a direct register or std::nullopt in case of error.