RetroArch
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
spv::Instruction Class Reference

#include <spvIR.h>

Collaboration diagram for spv::Instruction:
[legend]

Public Member Functions

 Instruction (Id resultId, Id typeId, Op opCode)
 
 Instruction (Op opCode)
 
virtual ~Instruction ()
 
void addIdOperand (Id id)
 
void addImmediateOperand (unsigned int immediate)
 
void addStringOperand (const char *str)
 
void setBlock (Block *b)
 
BlockgetBlock () const
 
Op getOpCode () const
 
int getNumOperands () const
 
Id getResultId () const
 
Id getTypeId () const
 
Id getIdOperand (int op) const
 
unsigned int getImmediateOperand (int op) const
 
void dump (std::vector< unsigned int > &out) const
 

Protected Member Functions

 Instruction (const Instruction &)
 

Protected Attributes

Id resultId
 
Id typeId
 
Op opCode
 
std::vector< Idoperands
 
Blockblock
 

Constructor & Destructor Documentation

◆ Instruction() [1/3]

spv::Instruction::Instruction ( Id  resultId,
Id  typeId,
Op  opCode 
)
inline

◆ Instruction() [2/3]

spv::Instruction::Instruction ( Op  opCode)
inlineexplicit

◆ ~Instruction()

virtual spv::Instruction::~Instruction ( )
inlinevirtual

◆ Instruction() [3/3]

spv::Instruction::Instruction ( const Instruction )
protected

Member Function Documentation

◆ addIdOperand()

void spv::Instruction::addIdOperand ( Id  id)
inline
Here is the caller graph for this function:

◆ addImmediateOperand()

void spv::Instruction::addImmediateOperand ( unsigned int  immediate)
inline
Here is the caller graph for this function:

◆ addStringOperand()

void spv::Instruction::addStringOperand ( const char *  str)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump()

void spv::Instruction::dump ( std::vector< unsigned int > &  out) const
inline
Here is the caller graph for this function:

◆ getBlock()

Block* spv::Instruction::getBlock ( ) const
inline

◆ getIdOperand()

Id spv::Instruction::getIdOperand ( int  op) const
inline
Here is the caller graph for this function:

◆ getImmediateOperand()

unsigned int spv::Instruction::getImmediateOperand ( int  op) const
inline
Here is the caller graph for this function:

◆ getNumOperands()

int spv::Instruction::getNumOperands ( ) const
inline
Here is the caller graph for this function:

◆ getOpCode()

Op spv::Instruction::getOpCode ( ) const
inline
Here is the caller graph for this function:

◆ getResultId()

Id spv::Instruction::getResultId ( ) const
inline
Here is the caller graph for this function:

◆ getTypeId()

Id spv::Instruction::getTypeId ( ) const
inline
Here is the caller graph for this function:

◆ setBlock()

void spv::Instruction::setBlock ( Block b)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ block

Block* spv::Instruction::block
protected

◆ opCode

Op spv::Instruction::opCode
protected

◆ operands

std::vector<Id> spv::Instruction::operands
protected

◆ resultId

Id spv::Instruction::resultId
protected

◆ typeId

Id spv::Instruction::typeId
protected

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