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

#include <allocator_base.h>

Inheritance diagram for PHV::v2::ContScopeAllocResult:
[legend]

Public Member Functions

 ContScopeAllocResult (const AllocError *err)
 
 ContScopeAllocResult (const Transaction &tx, const ActionSourceCoPackMap &hints, Container c, bool is_packing)
 
bool cont_is_whole_container_set_only () const
 
- Public Member Functions inherited from PHV::v2::AllocResult
 AllocResult (const AllocError *err)
 
 AllocResult (const Transaction &tx)
 
std::string err_str () const
 
bool ok () const
 
bool operator== (const AllocResult &other) const
 
std::string tx_str (cstring prefix=""_cs) const
 

Public Attributes

ActionSourceCoPackMap action_hints
 
Container c
 
bool is_packing = false
 
- Public Attributes inherited from PHV::v2::AllocResult
const AllocErrorerr = nullptr
 
std::optional< PHV::Transactiontx
 

Additional Inherited Members

- Static Public Member Functions inherited from PHV::v2::AllocResult
static std::string pretty_print_tx (const PHV::Transaction &tx, cstring prefix=cstring::empty)
 

Detailed Description

ContScopeAllocResult extends the AllocResult with additional properties for allocator to pick the best one.

  1. additional packing hints.
  2. allocated container.
  3. is this allocation result packing with other existing field slices.