P4C
The P4 Compiler
|
Flattens a header type "locally", without modifying the IR. More...
#include <flattenHeader.h>
Static Public Member Functions | |
static const IR::Type_Header * | flatten (P4::TypeMap *typeMap, const IR::Type_Header *headerType) |
Flattens a header type "locally", without modifying the IR.
|
static |
If the @headerType needs flattening, creates a clone of the IR node with a new flattened field list. Otherwise returns @headerType. This does not modify the IR.