P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::RemoveComplexExpressionsPolicy Class Referenceabstract

#include <removeComplexExpressions.h>

Inheritance diagram for P4::RemoveComplexExpressionsPolicy:
[legend]

Public Member Functions

virtual bool convert (const IR::P4Control *control) const =0
 

Detailed Description

Policy which selects the control blocks where remove complex expression is applied.

Member Function Documentation

◆ convert()

virtual bool P4::RemoveComplexExpressionsPolicy::convert ( const IR::P4Control * control) const
pure virtual

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

Implemented in P4::BMV2::ProcessControls, and P4::DPDK::ProcessControls.