P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::BMV2::EnumOn32Bits Class Reference

#include <midend.h>

Inheritance diagram for P4::BMV2::EnumOn32Bits:
[legend]

Public Member Functions

 EnumOn32Bits (cstring filename)
 
- Public Member Functions inherited from P4::ChooseEnumRepresentation
virtual unsigned encoding (const IR::Type_Enum *, unsigned n) const
 

Detailed Description

This class implements a policy suitable for the ConvertEnums pass. The policy is: convert all enums that are not part of the v1model. Use 32-bit values for all enums.

Constructor & Destructor Documentation

◆ EnumOn32Bits()

P4::BMV2::EnumOn32Bits::EnumOn32Bits ( cstring filename)
inlineexplicit

Convert all enums except all the ones appearing in the specified file.