P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::v2::FsPacker Struct Reference

Public Member Functions

bool is_alignment_compatible (const FieldSlice &fs, std::optional< int > unmaterialized_field_align, const AlignedCluster &aligned) const
 
bool is_byte_sized () const
 
void pack (const FieldSlice &fs)
 
cstring to_pa_byte_pack_pragma () const
 

Public Attributes

std::vector< FieldSlicecurr
 
int n_bits = 0
 

Member Function Documentation

◆ to_pa_byte_pack_pragma()

cstring PHV::v2::FsPacker::to_pa_byte_pack_pragma ( ) const
inline
Returns
empty string if cannot be done through pa_byte_pack. otherwise, return a string of pa_container_size pragma that can be directly applied on the program.