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

Public Member Functions

virtual UnusedDeclarationsgetUnusedDeclarationsPass (const UsedDeclSet &used, bool removeUnused, bool warnUnused, bool infoRemoved) const
 

Member Function Documentation

◆ getUnusedDeclarationsPass()

UnusedDeclarations * P4::RemoveUnusedPolicy::getUnusedDeclarationsPass ( const UsedDeclSet & used,
bool removeUnused,
bool warnUnused,
bool infoRemoved ) const
virtual

The policy for removing unused declarations is baked into the pass – targets can specify their own subclass of the pass with a changed policy and return that here