P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Phv Class Reference

#include <phv.h>

Inheritance diagram for Phv:
[legend]

Classes

struct  PerStageInfo
 
class  Ref
 
struct  Register
 
class  Slice
 

Static Public Member Functions

static const std::set< std::string > & aliases (const Register *reg, int stage)
 
static std::string db_regset (const bitvec &s)
 
static const Sliceget (gress_t gress, int stage, const std::string &name)
 
static const Sliceget (gress_t gress, int stg, const char *name)
 
static const std::string get_pov_name (int reg, int index)
 
static unsigned mau_groupsize ()
 
static int num_regs ()
 
static const Registerreg (int idx)
 
static const Registerreg (std::string name)
 
static void setuse (gress_t gress, const bitvec &u)
 
static void test_clear ()
 
static void unsetuse (gress_t gress, const bitvec &u)
 
static const bitvecuse (gress_t gress)
 
- Static Public Member Functions inherited from Section
static void asm_section (char *name, VECTOR(value_t) args, value_t data)
 
static bool no_sections_in_assembly ()
 
static void output_all (json::map &ctxtJson)
 
static void process_all ()
 
static bool section_in_assembly (const char *name)
 
static int start_section (int lineno, char *name, VECTOR(value_t) args)
 
static Sectiontest_get (const char *name)
 

Protected Attributes

std::map< std::string, std::map< int, PerStageInfo > > names [3]
 
std::map< int, std::map< int, std::string > > phv_pov_names
 
std::vector< Register * > regs
 

Additional Inherited Members

- Protected Member Functions inherited from Section
 Section (const char *name_)
 
virtual void process ()
 optionally process the data if not done during parsing
 

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


Class Documentation

◆ Phv::PerStageInfo

struct Phv::PerStageInfo
Class Members
int max_stage = INT_MAX
Slice slice