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

#include <spvIR.h>

Collaboration diagram for spv::Block:
[legend]

Public Member Functions

 Block (Id id, Function &parent)
 
virtual ~Block ()
 
Id getId ()
 
FunctiongetParent () const
 
void addInstruction (std::unique_ptr< Instruction > inst)
 
void addPredecessor (Block *pred)
 
void addLocalVariable (std::unique_ptr< Instruction > inst)
 
const std::vector< Block * > & getPredecessors () const
 
const std::vector< Block * > & getSuccessors () const
 
const std::vector< std::unique_ptr< Instruction > > & getInstructions () const
 
void setUnreachable ()
 
bool isUnreachable () const
 
const InstructiongetMergeInstruction () const
 
bool isTerminated () const
 
void dump (std::vector< unsigned int > &out) const
 

Protected Member Functions

 Block (const Block &)
 
Blockoperator= (Block &)
 

Protected Attributes

friend Function
 
std::vector< std::unique_ptr< Instruction > > instructions
 
std::vector< Block * > predecessors
 
std::vector< Block * > successors
 
std::vector< std::unique_ptr< Instruction > > localVariables
 
Functionparent
 
bool unreachable
 

Constructor & Destructor Documentation

◆ Block() [1/2]

__inline spv::Block::Block ( Id  id,
Function parent 
)
Here is the call graph for this function:

◆ ~Block()

virtual spv::Block::~Block ( )
inlinevirtual

◆ Block() [2/2]

spv::Block::Block ( const Block )
protected

Member Function Documentation

◆ addInstruction()

__inline void spv::Block::addInstruction ( std::unique_ptr< Instruction inst)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addLocalVariable()

void spv::Block::addLocalVariable ( std::unique_ptr< Instruction inst)
inline

◆ addPredecessor()

void spv::Block::addPredecessor ( Block pred)
inline
Here is the caller graph for this function:

◆ dump()

void spv::Block::dump ( std::vector< unsigned int > &  out) const
inline

◆ getId()

Id spv::Block::getId ( )
inline
Here is the caller graph for this function:

◆ getInstructions()

const std::vector<std::unique_ptr<Instruction> >& spv::Block::getInstructions ( ) const
inline

◆ getMergeInstruction()

const Instruction* spv::Block::getMergeInstruction ( ) const
inline
Here is the call graph for this function:

◆ getParent()

Function& spv::Block::getParent ( ) const
inline
Here is the caller graph for this function:

◆ getPredecessors()

const std::vector<Block*>& spv::Block::getPredecessors ( ) const
inline

◆ getSuccessors()

const std::vector<Block*>& spv::Block::getSuccessors ( ) const
inline

◆ isTerminated()

bool spv::Block::isTerminated ( ) const
inline
Here is the caller graph for this function:

◆ isUnreachable()

bool spv::Block::isUnreachable ( ) const
inline

◆ operator=()

Block& spv::Block::operator= ( Block )
protected

◆ setUnreachable()

void spv::Block::setUnreachable ( )
inline

Member Data Documentation

◆ Function

friend spv::Block::Function
protected

◆ instructions

std::vector<std::unique_ptr<Instruction> > spv::Block::instructions
protected

◆ localVariables

std::vector<std::unique_ptr<Instruction> > spv::Block::localVariables
protected

◆ parent

Function& spv::Block::parent
protected

◆ predecessors

std::vector<Block*> spv::Block::predecessors
protected

◆ successors

std::vector<Block*> spv::Block::successors
protected

◆ unreachable

bool spv::Block::unreachable
protected

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