P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::v2::CoPacker Class Reference

CoPacker is the method that compute and generates copack constraints. More...

#include <copacker.h>

Public Member Functions

 CoPacker (const ActionSourceTracker &sources, const SuperCluster *sc, const ScAllocAlignment *alignment)
 
CoPackResult gen_copack_hints (const Allocation &allocated_tx, const std::vector< AllocSlice > &slices, const Container &c) const
 

Detailed Description

CoPacker is the method that compute and generates copack constraints.

Member Function Documentation

◆ gen_copack_hints()

CoPackResult PHV::v2::CoPacker::gen_copack_hints ( const Allocation & allocated_tx,
const std::vector< AllocSlice > & slices,
const Container & c ) const
Returns
CoPackResult introduced by allocated slices slices in container c. Premise:
  1. alloc must be the allocation that has slices allocated already.
  2. slices must be field slices of member variable sc_i.