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

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

#include <bfruntime_arch_handler.h>

Static Public Member Functions

static std::optional< RegisterParamfrom (const IR::ExternBlock *instance, const ReferenceMap *refMap, TypeMap *typeMap, p4configv1::P4TypeInfo *p4RtTypeInfo)
 

Public Attributes

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

Detailed Description

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

Member Function Documentation

◆ from()

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