P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::P4Test::SkipControls Class Reference
Inheritance diagram for P4::P4Test::SkipControls:
[legend]

Public Member Functions

 SkipControls (const std::set< cstring > *skip)
 
bool convert (const Visitor::Context *, const IR::P4Control *control) override
 
- Public Member Functions inherited from P4::ActionSynthesisPolicy
virtual bool can_combine (const Visitor::Context *, const IR::BlockStatement *, const IR::StatOrDecl *)
 

Member Function Documentation

◆ convert()

bool P4::P4Test::SkipControls::convert ( const Visitor::Context * ctxt,
const IR::P4Control * control )
inlineoverridevirtual

If the policy returns true the control block is processed, otherwise it is left unchanged.

Implements P4::ActionSynthesisPolicy.