Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
talvos::Block Class Reference

A block of instructions ending with a termination instruction. More...

#include <talvos/Block.h>

Public Member Functions

 Block (uint32_t Id)
 Create a new block with an ID. More...
 
 ~Block ()
 
uint32_t getId () const
 Returns the ID of this block. More...
 
InstructiongetLabel () const
 Returns the label instruction for this block. More...
 
 Block (const Block &)=delete
 
Blockoperator= (const Block &)=delete
 

Private Attributes

uint32_t Id
 The unique ID of the block. More...
 
std::unique_ptr< InstructionLabel
 The label instruction. More...
 

Detailed Description

A block of instructions ending with a termination instruction.

Definition at line 21 of file Block.h.

Constructor & Destructor Documentation

talvos::Block::Block ( uint32_t  Id)

Create a new block with an ID.

Definition at line 17 of file Block.cpp.

talvos::Block::~Block ( )

Definition at line 23 of file Block.cpp.

talvos::Block::Block ( const Block )
delete

Member Function Documentation

uint32_t talvos::Block::getId ( ) const
inline

Returns the ID of this block.

Definition at line 36 of file Block.h.

Instruction& talvos::Block::getLabel ( ) const
inline

Returns the label instruction for this block.

Definition at line 39 of file Block.h.

Block& talvos::Block::operator= ( const Block )
delete

Member Data Documentation

uint32_t talvos::Block::Id
private

The unique ID of the block.

Definition at line 42 of file Block.h.

std::unique_ptr<Instruction> talvos::Block::Label
private

The label instruction.

Definition at line 44 of file Block.h.