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

Public Member Functions

virtual RemoveUnusedDeclarationsgetRemoveUnusedDeclarationsPass (const UsedDeclSet &used, bool warn=false) const
 

Member Function Documentation

◆ getRemoveUnusedDeclarationsPass()

RemoveUnusedDeclarations * P4::RemoveUnusedPolicy::getRemoveUnusedDeclarationsPass ( const UsedDeclSet & used,
bool warn = false ) 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