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

Classes

struct  Decode
 

Public Member Functions

 LoadConst (int line, Phv::Ref &d, int v)
 
 LoadConst (Table *tbl, const Table::Actions::Action *act, const value_t &d, int s)
 
void dbprint (std::ostream &out) const override
 
int encode () override
 
bool equiv (Instruction *a_) override
 
std::string name () override
 
Instructionpass1 (Table *tbl, Table::Actions::Action *) override
 
void pass2 (Table *, Table::Actions::Action *) override
 
bool phvRead (std::function< void(const ::Phv::Slice &sl)> fn) override
 
- Public Member Functions inherited from VLIW::VLIWInstruction
 VLIWInstruction (int l)
 
template<class REGS>
void write_regs_2 (REGS &regs, Table *tbl, Table::Actions::Action *act)
 
template<typename REGS>
void write_regs_2 (REGS &regs, Table *tbl, Table::Actions::Action *act)
 
- Public Member Functions inherited from Instruction
 Instruction (int l)
 
bool equiv (const std::unique_ptr< Instruction > &a)
 
bool phvRead ()
 
virtual bool phvRead (std::function< void(const Phv::Slice &sl)>)=0
 
virtual bool salu_alu () const
 
virtual bool salu_output () const
 
- Public Member Functions inherited from P4::IHasDbPrint
void print () const
 

Public Attributes

Phv::Ref dest
 
int src
 
- Public Attributes inherited from Instruction
int lineno
 
int slot
 

Additional Inherited Members

- Public Types inherited from Instruction
enum  instruction_set_t { VLIW_ALU = 0 , STATEFUL_ALU = 1 , NUM_SETS = 2 }
 
- Static Public Member Functions inherited from Instruction
static Instructiondecode (Table *, const Table::Actions::Action *, const VECTOR(value_t) &)
 

Member Function Documentation

◆ dbprint()

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

Implements Instruction.

◆ encode()

int VLIW::LoadConst::encode ( )
inlineoverridevirtual

Implements VLIW::VLIWInstruction.

◆ equiv()

bool VLIW::LoadConst::equiv ( Instruction * a_)
overridevirtual

Implements Instruction.

◆ name()

std::string VLIW::LoadConst::name ( )
inlineoverridevirtual

Implements Instruction.

◆ pass1()

Instruction * VLIW::LoadConst::pass1 ( Table * tbl,
Table::Actions::Action *  )
overridevirtual

Implements Instruction.

◆ pass2()

void VLIW::LoadConst::pass2 ( Table * ,
Table::Actions::Action *  )
inlineoverridevirtual

Implements Instruction.