P4C
The P4 Compiler
|
#include <live_range_split.h>
Public Member Functions | |
ContainerOccupancy (int minStage, int maxStage, unsigned containerWidth) | |
std::vector< le_bitrange > | availBitsAt (PHV::StageAndAccess sa, unsigned minLength=0) |
bool | isRangeAvailable (StageAndAccess begin, StageAndAccess end, le_bitrange range) |
void | setRange (StageAndAccess begin, StageAndAccess end, le_bitrange range) |
Set bits in range for stage span [begin, end]. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ContainerOccupancy &occ) |
Represents what bits of a container are used or available over all possible stages.
|
inline |
Find ranges of available bits in this container at the given StageAndAccess, with optional constraints on the bit length and alignment.