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

Public Member Functions

 Base (const Base &a)
 
 Base (int line)
 
virtual unsigned bitoffset (int group) const
 
virtual int bits (int group, int dest_size=-1)=0
 
virtual bool check ()
 
virtual Baseclone ()=0
 
virtual void dbprint (std::ostream &) const =0
 
virtual bool equiv (const Base *) const =0
 
virtual Baselookup (Base *&ref)
 
virtual void pass1 (Table *tbl, int group)
 
virtual void pass2 (int group)
 
virtual int phvGroup ()
 
virtual bool phvRead (std::function< void(const ::Phv::Slice &sl)>)
 

Public Attributes

int lineno
 

Member Function Documentation

◆ pass1()

virtual void VLIW::Operand::Base::pass1 ( Table * tbl,
int group )
inlinevirtual

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 in VLIW::Operand::Action, VLIW::Operand::Named, and VLIW::Operand::Phv.

◆ pass2()

virtual void VLIW::Operand::Base::pass2 ( int group)
inlinevirtual

pass2 called as part of pass2 processing of stage

Parameters
groupmau PHV group of the ALU (dest) for this instruction

Reimplemented in VLIW::Operand::Action, VLIW::Operand::HashDist, and VLIW::Operand::RandomGen.