P4C
The P4 Compiler
Loading...
Searching...
No Matches
ScoreContext Class Reference

ScoreContext can compute a alloc score for an PHV::Transaction. More...

#include <allocate_phv.h>

Public Member Functions

 ScoreContext (cstring name, bool stop_at_first, AllocScore::IsBetterFunc is_better)
 
bool is_better (const AllocScore &left, const AllocScore &right) const
 
AllocScore make_score (const PHV::Transaction &alloc, const PhvInfo &phv, const ClotInfo &clot, const PhvUse &uses, const MapFieldToParserStates &field_to_parser_states, const CalcParserCriticalPath &parser_critical_path, const TableFieldPackOptimization &tablePackOpt, const int bitmasks=0) const
 
bool stop_at_first () const
 
ScoreContext with (FieldPackingOpportunity *packing)
 

Detailed Description

ScoreContext can compute a alloc score for an PHV::Transaction.