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

Public Member Functions

 SubstituteStructures (TypeMap *typeMap)
 
const IR::Node * postorder (IR::PathExpression *expression) override
 

Detailed Description

Replace a reference to a structure with a list of all its fields if the reference occurs in a select expression. This should be run after tuple elimination, so we only need to deal with structs.