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

Public Member Functions

 MoveInitializers (ReferenceMap *refMap)
 
const IR::Node * postorder (IR::Declaration_Variable *decl) override
 
const IR::Node * postorder (IR::P4Control *control) override
 
const IR::Node * postorder (IR::P4Parser *parser) override
 
const IR::Node * postorder (IR::ParserState *state) override
 
const IR::Node * postorder (IR::Path *path) override
 
const IR::Node * preorder (IR::P4Parser *parser) override
 

Detailed Description

After MoveDeclarations, some variable declarations in the "local" section of a parser and control may still have initializers; these are moved into a new start state, and to the beginning of the apply body repectively.

Precondition
Must be run after MoveDeclarations.