
Public Member Functions | |
| ProcessControls (const std::set< cstring > *process) | |
| bool | convert (const IR::P4Control *control) const |
This class implements a policy suitable for the RemoveComplexExpression pass. The policy is: only remove complex expression for the controls whose names are in the specified set. For example, we expect that the code in ingress and egress will have complex expression removed.
If the policy returns true the control block is processed, otherwise it is left unchanged.
Implements P4::RemoveComplexExpressionsPolicy.