![]()  | 
  
    P4C
    
   The P4 Compiler 
   | 
 
#include <actionSynthesis.h>
Public Member Functions | |
| virtual bool | can_combine (const Visitor::Context *, const IR::BlockStatement *, const IR::StatOrDecl *) | 
| virtual bool | convert (const Visitor::Context *ctxt, const IR::P4Control *control)=0 | 
Policy which selects the control blocks where action synthesis is applied.
      
  | 
  inlinevirtual | 
Called for each statement that may be put into an action when there are preceeding statements already put into an action –
| ctxt | context of the code being processsed (control and parents) | 
| blk | previous statement(s) being put into an action | 
| stmt | statement to be added to the block for a single action | 
      
  | 
  pure virtual | 
If the policy returns true the control block is processed, otherwise it is left unchanged.
Implemented in BMV2::SkipControls, and P4Test::SkipControls.