P4C
The P4 Compiler
Loading...
Searching...
No Matches
StateExtractUsage Struct Reference

#include <parser_extract_balance_score.h>

Public Member Functions

 StateExtractUsage (const std::set< PHV::Container > &containers)
 
bool operator< (StateExtractUsage b) const
 
bool operator== (const StateExtractUsage &c) const
 
void print () const
 
std::vector< unsigned > sorted () const
 
unsigned total_bytes () const
 
unsigned total_extracts () const
 

Public Attributes

std::map< PHV::Size, unsigned > use
 

Static Public Attributes

static const std::vector< PHV::Sizeextractor_sizes
 

Detailed Description

Copyright (C) 2024 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Member Data Documentation

◆ extractor_sizes

const std::vector< PHV::Size > StateExtractUsage::extractor_sizes
static
Initial value:
= {PHV::Size::b8, PHV::Size::b16,
PHV::Size::b32}

Copyright (C) 2024 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

◆ use

std::map<PHV::Size, unsigned> StateExtractUsage::use
Initial value:
= {
{PHV::Size::b8, 0}, {PHV::Size::b16, 0}, {PHV::Size::b32, 0}}