![]() |
P4C
The P4 Compiler
|
Classes | |
| struct | Decode |
Public Types | |
| enum | special_flags { Commutative = 1 , IgnoreSrc1 = 2 , IgnoreSrc2 = 4 , IgnoreSrcs = 6 , CanSliceWithConst = 8 } |
Public Types inherited from Instruction | |
| enum | instruction_set_t { VLIW_ALU = 0 , STATEFUL_ALU = 1 , NUM_SETS = 2 } |
Public Member Functions | |
| AluOP (const Decode *op, Table *tbl, const Table::Actions::Action *act, const value_t &d, const value_t &s1, const value_t &s2) | |
| void | dbprint (std::ostream &out) const override |
| int | encode () override |
| bool | equiv (Instruction *a_) override |
| std::string | name () override |
| Instruction * | pass1 (Table *tbl, Table::Actions::Action *) override |
| void | pass2 (Table *tbl, 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 ®s, Table *tbl, Table::Actions::Action *act) |
| template<typename REGS> | |
| void | write_regs_2 (REGS ®s, 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 |
| bool | ignoreSrc1 = false |
| bool | ignoreSrc2 = false |
| VLIW::AluOP::Decode * | opc |
| Operand | src1 |
| Operand | src2 |
Public Attributes inherited from Instruction | |
| int | lineno |
| int | slot |
Additional Inherited Members | |
Static Public Member Functions inherited from Instruction | |
| static Instruction * | decode (Table *, const Table::Actions::Action *, const VECTOR(value_t) &) |
|
inlineoverridevirtual |
Implements Instruction.
|
overridevirtual |
Implements VLIW::VLIWInstruction.
|
overridevirtual |
Implements Instruction.
|
inlineoverridevirtual |
Implements Instruction.
|
overridevirtual |
Implements Instruction.
|
inlineoverridevirtual |
Implements Instruction.