P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
VLIW::Operand::Phv Struct Reference
Inheritance diagram for VLIW::Operand::Phv:
[legend]

Public Member Functions

 Phv (const ::Phv::Ref &r)
 
 Phv (int line, gress_t g, int stage, const std::string &n, int l, int h)
 
 Phv (int line, gress_t g, int stage, const value_t &n)
 
unsigned bitoffset (int group) const override
 
int bits (int group, int dest_size=-1) override
 
bool check () override
 
Phvclone () override
 
void dbprint (std::ostream &out) const override
 
bool equiv (const Base *a_) const override
 
void pass1 (Table *tbl, int) override
 
int phvGroup () override
 
bool phvRead (std::function< void(const ::Phv::Slice &sl)> fn) override
 
- Public Member Functions inherited from VLIW::Operand::Base
 Base (const Base &a)
 
 Base (int line)
 
virtual Baselookup (Base *&ref)
 
virtual void pass2 (int group)
 

Public Attributes

::Phv::Ref reg
 
- Public Attributes inherited from VLIW::Operand::Base
int lineno
 

Member Function Documentation

◆ bitoffset()

unsigned VLIW::Operand::Phv::bitoffset ( int group) const
inlineoverridevirtual

Reimplemented from VLIW::Operand::Base.

◆ bits()

int VLIW::Operand::Phv::bits ( int group,
int dest_size = -1 )
inlineoverridevirtual

Implements VLIW::Operand::Base.

◆ check()

bool VLIW::Operand::Phv::check ( )
inlineoverridevirtual

Reimplemented from VLIW::Operand::Base.

◆ clone()

Phv * VLIW::Operand::Phv::clone ( )
inlineoverridevirtual

Implements VLIW::Operand::Base.

◆ dbprint()

void VLIW::Operand::Phv::dbprint ( std::ostream & out) const
inlineoverridevirtual

Implements VLIW::Operand::Base.

◆ equiv()

bool VLIW::Operand::Phv::equiv ( const Base * a_) const
inlineoverridevirtual

Implements VLIW::Operand::Base.

◆ pass1()

void VLIW::Operand::Phv::pass1 ( Table * tbl,
int group )
inlineoverridevirtual

pass1 called as part of pass1 processing of stage

Parameters
tbltable containing the action with the instruction with this operand
groupmau PHV group of the ALU (dest) for this instruction

Reimplemented from VLIW::Operand::Base.

◆ phvGroup()

int VLIW::Operand::Phv::phvGroup ( )
inlineoverridevirtual

Reimplemented from VLIW::Operand::Base.

◆ phvRead()

bool VLIW::Operand::Phv::phvRead ( std::function< void(const ::Phv::Slice &sl)> fn)
inlineoverridevirtual

Reimplemented from VLIW::Operand::Base.