P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::ChooseEnumRepresentation Class Referenceabstract

#include <convertEnums.h>

Inheritance diagram for P4::ChooseEnumRepresentation:
[legend]

Public Member Functions

virtual bool convert (const IR::Type_Enum *type) const =0
 
virtual unsigned encoding (const IR::Type_Enum *, unsigned n) const
 
virtual unsigned enumSize (unsigned enumCount) const =0
 

Detailed Description

Policy function: given a number of enum values should return the size of a Type_Bits type used to represent the values.