P4C
The P4 Compiler
|
#include <backend.h>
Public Member Functions | |
ProcessControls (const std::set< cstring > *process) | |
bool | convert (const IR::P4Control *control) const |
Public Member Functions inherited from P4::RemoveComplexExpressionsPolicy |
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.
|
inlinevirtual |
If the policy returns true the control block is processed, otherwise it is left unchanged.
Implements P4::RemoveComplexExpressionsPolicy.