P4C
The P4 Compiler
 
Loading...
Searching...
No Matches
P4::DoReplaceNewtype Class Referencefinal
Inheritance diagram for P4::DoReplaceNewtype:

Public Member Functions

 DoReplaceNewtype (const TypeMap *typeMap)
 
const IR::Node * postorder (IR::Cast *expression) override
 
const IR::Node * postorder (IR::Type_Newtype *type) override
 

Detailed Description

Replaces newtype by the type it was defined to represent. This can be done when all the information required by the control-plane has been generated. We actually just replace the newtype by a typedef.