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

Public Member Functions

 Const (int line, int64_t v)
 
int32_t bits (int group, int dest_size=-1) override
 
Constclone () override
 
void dbprint (std::ostream &out) const override
 
bool equiv (const Base *a_) const override
 
- Public Member Functions inherited from VLIW::Operand::Base
 Base (const Base &a)
 
 Base (int line)
 
virtual unsigned bitoffset (int group) const
 
virtual bool check ()
 
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

int64_t value
 
- Public Attributes inherited from VLIW::Operand::Base
int lineno
 

Member Function Documentation

◆ bits()

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

Implements VLIW::Operand::Base.

◆ clone()

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

Implements VLIW::Operand::Base.

◆ dbprint()

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

Implements VLIW::Operand::Base.

◆ equiv()

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

Implements VLIW::Operand::Base.