Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Namespaces | Macros
Memory.cpp File Reference

This file defines the Memory class. More...

#include <algorithm>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <spirv/unified1/spirv.h>
#include "talvos/Device.h"
#include "talvos/Memory.h"

Go to the source code of this file.

Namespaces

 talvos
 

Macros

#define BUFFER_BITS   (16)
 Number of bits used for the buffer ID. More...
 
#define OFFSET_BITS   (64 - BUFFER_BITS)
 Number of bits used for the address offset. More...
 
#define LOCK_ATOMIC_MUTEX(Address)
 
#define UNLOCK_ATOMIC_MUTEX(Address)
 

Detailed Description

This file defines the Memory class.

Definition in file Memory.cpp.

Macro Definition Documentation

#define BUFFER_BITS   (16)

Number of bits used for the buffer ID.

Definition at line 23 of file Memory.cpp.

#define LOCK_ATOMIC_MUTEX (   Address)
Value:
if (this->Scope == MemoryScope::Device) \
AtomicMutexes[Address % NUM_ATOMIC_MUTEXES].lock()

Definition at line 29 of file Memory.cpp.

#define OFFSET_BITS   (64 - BUFFER_BITS)

Number of bits used for the address offset.

Definition at line 26 of file Memory.cpp.

#define UNLOCK_ATOMIC_MUTEX (   Address)
Value:
if (this->Scope == MemoryScope::Device) \
AtomicMutexes[Address % NUM_ATOMIC_MUTEXES].unlock()

Definition at line 32 of file Memory.cpp.