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

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

#include <bfruntime_arch_handler.h>

Static Public Member Functions

static std::optional< Lpffrom (const IR::ExternBlock *instance)
 
static std::optional< LpffromDirect (const P4::ExternInstance &instance, const IR::P4Table *table)
 

Public Attributes

const IR::IAnnotated * annotations
 
const cstring name
 
int64_t size
 
const std::optional< cstringtable
 If not none, the instance is a direct resource associated with table.
 

Detailed Description

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

Member Function Documentation

◆ from()

static std::optional< Lpf > BFN::Lpf::from ( const IR::ExternBlock * instance)
inlinestatic
Returns
the information required to serialize an instance of Lpf or std::nullopt in case of error.

◆ fromDirect()

static std::optional< Lpf > BFN::Lpf::fromDirect ( const P4::ExternInstance & instance,
const IR::P4Table * table )
inlinestatic
Returns
the information required to serialize an instance of a direct Lpf or std::nullopt in case of error.