P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::ParserPackingValidatorInterface Class Referenceabstract
Inheritance diagram for PHV::ParserPackingValidatorInterface:
[legend]

Public Member Functions

virtual const v2::AllocErrorcan_pack (const v2::FieldSliceAllocStartMap &alloc, bool add_mau_inits) const =0
 

Member Function Documentation

◆ can_pack()

virtual const v2::AllocError * PHV::ParserPackingValidatorInterface::can_pack ( const v2::FieldSliceAllocStartMap & alloc,
bool add_mau_inits ) const
pure virtual
Returns
an error if we allocated slices in the format of alloc. c is optional for 32-bit container half-word extract optimization.

Implemented in PHV::v2::ParserPackingValidator.