P4C
The P4 Compiler
Loading...
Searching...
No Matches
AnalyzeActionTables Class Reference

#include <remove_act_tables.h>

Inheritance diagram for AnalyzeActionTables:
[legend]

Public Member Functions

bool isCandidate (const IR::MAU::Table *t) const
 

Detailed Description

Analyze tables to see whether they can be reduced to a set of assignments which can be moved either in the parser or into other actions similar to metadata initialization.

This is comes up in P4-16 when the programmer declares a set of local variables in a control. The midend generates a table with a single action that initializes these variables and thus introduces a dependency that extends the number of stages.