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

Public Member Functions

 VLIWInstruction (int l)
 
virtual int encode ()=0
 
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)
 
virtual void dbprint (std::ostream &) const =0
 
bool equiv (const std::unique_ptr< Instruction > &a)
 
virtual bool equiv (Instruction *a)=0
 
virtual std::string name ()=0
 
virtual Instructionpass1 (Table *, Table::Actions::Action *)=0
 
virtual void pass2 (Table *, Table::Actions::Action *)=0
 
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
 

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) &)
 
- Public Attributes inherited from Instruction
int lineno
 
int slot
 

Member Function Documentation

◆ write_regs_2() [1/2]

template<typename REGS>
void VLIW::VLIWInstruction::write_regs_2 ( REGS & regs,
Table * tbl,
Table::Actions::Action * act )

Copyright (C) 2024 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

◆ write_regs_2() [2/2]

template<typename REGS>
void VLIW::VLIWInstruction::write_regs_2 ( REGS & regs,
Table * tbl,
Table::Actions::Action * act )

Copyright (C) 2024 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0