P4C
The P4 Compiler
P4::RemoveComplexExpressionsPolicy Class Referenceabstract
Inheritance diagram for P4::RemoveComplexExpressionsPolicy:
[legend]

Public Member Functions

virtual bool convert (const IR::P4Control *control) const =0
 
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() [1/2]

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 DPDK::ProcessControls, and BMV2::ProcessControls.

◆ convert() [2/2]

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 DPDK::ProcessControls, and BMV2::ProcessControls.