P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::v2::CoPackHint Struct Reference

#include <copacker.h>

Public Attributes

std::vector< SrcPackVec * > pack_sources
 1 or 2 source packing vector.
 
cstring reason = ""_cs
 reason of this copack constraint.
 
bool required = false
 true if this packing is the only option and required.
 

Detailed Description

a list of SrcPackVec that must either all be satisfied or none. For each action, the packing in destination may create 1 or 2 hints, e.g., bitwise-op would require two sources to aligned and packed in two container.

Member Data Documentation

◆ pack_sources

std::vector<SrcPackVec *> PHV::v2::CoPackHint::pack_sources

1 or 2 source packing vector.

◆ reason

cstring PHV::v2::CoPackHint::reason = ""_cs

reason of this copack constraint.

◆ required

bool PHV::v2::CoPackHint::required = false

true if this packing is the only option and required.