P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::Allocation::ConditionalConstraintData Struct Reference

#include <utils.h>

Public Member Functions

 ConditionalConstraintData (int bit, bool rotate=false)
 
 ConditionalConstraintData (int bit, PHV::Container c, bool rotate=false)
 
bool operator== (ConditionalConstraintData &other) const
 

Public Attributes

int bitPosition
 Bit position to which the FieldSlice must be aligned.
 
std::optional< PHV::Containercontainer
 Specific container to which the slice must be allocated.
 
bool rotationAllowed
 Boolean set to true if AllocatePHV can use rotationally equivalent bitPosition.
 

Detailed Description

This struct represents the conditional constraint information generated by ActionPhvConstraints for a single unallocated PHV::FieldSlice.