P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::Slicing::NextSplitChoiceMetrics Struct Reference

Public Member Functions

 NextSplitChoiceMetrics (bool will_create_new_split, bool split_unreferenced, int n_avoidable_packings, SplitChoice size)
 

Static Public Member Functions

static bool default_heuristics (const NextSplitChoiceMetrics &a, const NextSplitChoiceMetrics &b)
 
static bool minimal_packing (const NextSplitChoiceMetrics &a, const NextSplitChoiceMetrics &b)
 

Public Attributes

int n_avoidable_packings = 0
 
SplitChoice size
 
bool will_create_new_split = false
 
bool will_split_unreferenced = false
 

Member Function Documentation

◆ minimal_packing()

static bool PHV::Slicing::NextSplitChoiceMetrics::minimal_packing ( const NextSplitChoiceMetrics & a,
const NextSplitChoiceMetrics & b )
inlinestatic

minimal packing choices that

  1. try to split with minimal avoidable packings.
  2. otherwise same as default.