P4C
The P4 Compiler
|
Public Member Functions | |
LayoutChoices (PhvInfo &p, const ReductionOrInfo &ri, SplitAttachedInfo &a) | |
void | add_payload_gw_layout (const IR::MAU::Table *tbl, const LayoutOption &base_option) |
void | clear () |
const safe_vector< ActionData::Format::Use > & | get_action_formats (const IR::MAU::Table *t) |
const safe_vector< ActionData::Format::Use > & | get_action_formats (const IR::MAU::Table *t, ActionData::FormatType_t type) |
MeterALU::Format::Use | get_attached_formats (const IR::MAU::Table *t, ActionData::FormatType_t format_type) const |
const safe_vector< LayoutOption > & | get_layout_options (const IR::MAU::Table *t) |
const safe_vector< LayoutOption > & | get_layout_options (const IR::MAU::Table *t, ActionData::FormatType_t type) |
Static Public Member Functions | |
static LayoutChoices * | create (PhvInfo &p, const ReductionOrInfo &ri, SplitAttachedInfo &a) |
Public Attributes | |
FindPayloadCandidates | fpc |
const ReductionOrInfo & | red_info |
std::map< cstring, MeterALU::Format::Use > | total_meter_output_format |
Protected Types | |
template<class T > | |
using | cache_t = std::map<key_t, safe_vector<T>> |
using | key_t = std::pair<cstring, ActionData::FormatType_t> |
Protected Member Functions | |
int | get_pack_pragma_val (const IR::MAU::Table *tbl, const IR::MAU::Table::Layout &layout_proto) |
Protected Attributes | |
cache_t< ActionData::Format::Use > | cache_action_formats |
cache_t< LayoutOption > | cache_layout_options |