P4C
The P4 Compiler
 
Loading...
Searching...
No Matches
P4Tools::ConvertStructExpr Class Reference
Inheritance diagram for P4Tools::ConvertStructExpr:

Public Member Functions

 ConvertStructExpr (const P4::TypeMap *typeMap)
 
const IR::Node * postorder (IR::StructExpression *expr) override
 

Detailed Description

This pass does two things. First, it converts any type member of struct expression that is a Type_Name into a Tupe_StructLike. Second, if the type is a Type_Header, it converts the StructExpression into a HeaderExpression.