QuISP
Loading...
Searching...
No Matches
quisp::runtime::Instruction< OpLit, Operands > Struct Template Reference

This class represents IR (intermediate representation) instruction. Program consists of Instructions. More...

#include <opcode.h>

Collaboration diagram for quisp::runtime::Instruction< OpLit, Operands >:

Public Member Functions

 Instruction (std::tuple< Operands... > args, std::string label="")
 
 Instruction (std::tuple< Operands... > args, Label label)
 
std::string toString () const
 returns string representation for debugging
 
template<size_t N = 0, typename T >
void toStringArgs (const T &t, std::stringstream &s) const
 

Public Attributes

int opcode
 
std::tuple< Operands... > args
 
std::string label
 

Detailed Description

template<class OpLit, class... Operands>
struct quisp::runtime::Instruction< OpLit, Operands >

This class represents IR (intermediate representation) instruction. Program consists of Instructions.

Template Parameters
OpLit
Operands

Constructor & Destructor Documentation

◆ Instruction() [1/2]

template<class OpLit , class... Operands>
quisp::runtime::Instruction< OpLit, Operands >::Instruction ( std::tuple< Operands... > args,
std::string label = "" )
inline

◆ Instruction() [2/2]

template<class OpLit , class... Operands>
quisp::runtime::Instruction< OpLit, Operands >::Instruction ( std::tuple< Operands... > args,
Label label )
inline

Member Function Documentation

◆ toString()

template<class OpLit , class... Operands>
std::string quisp::runtime::Instruction< OpLit, Operands >::toString ( ) const
inline

returns string representation for debugging

◆ toStringArgs()

template<class OpLit , class... Operands>
template<size_t N = 0, typename T >
void quisp::runtime::Instruction< OpLit, Operands >::toStringArgs ( const T & t,
std::stringstream & s ) const
inline

Member Data Documentation

◆ args

template<class OpLit , class... Operands>
std::tuple<Operands...> quisp::runtime::Instruction< OpLit, Operands >::args

◆ label

template<class OpLit , class... Operands>
std::string quisp::runtime::Instruction< OpLit, Operands >::label

◆ opcode

template<class OpLit , class... Operands>
int quisp::runtime::Instruction< OpLit, Operands >::opcode

The documentation for this struct was generated from the following file: