CLRX
1
An unofficial OpenCL extensions designed for Radeon GPUs
|
main class of assembler More...
#include <Assembler.h>
Public Types | |
typedef std::pair< CString, uint64_t > | DefSym |
defined symbol entry | |
typedef std::unordered_map < CString, RefPtr< const AsmMacro > > | MacroMap |
macro map type | |
typedef std::unordered_map < CString, cxuint > | KernelMap |
kernel map type | |
Public Member Functions | |
Assembler (const CString &filename, std::istream &input, Flags flags=0, BinaryFormat format=BinaryFormat::AMD, GPUDeviceType deviceType=GPUDeviceType::CAPE_VERDE, std::ostream &msgStream=std::cerr, std::ostream &printStream=std::cout) | |
constructor with filename and input stream More... | |
Assembler (const Array< CString > &filenames, Flags flags=0, BinaryFormat format=BinaryFormat::AMD, GPUDeviceType deviceType=GPUDeviceType::CAPE_VERDE, std::ostream &msgStream=std::cerr, std::ostream &printStream=std::cout) | |
constructor with filename and input stream More... | |
~Assembler () | |
destructor | |
bool | assemble () |
main routine to assemble code | |
void | writeBinary (const char *filename) const |
write binary to file | |
void | writeBinary (std::ostream &outStream) const |
write binary to stream | |
void | writeBinary (Array< cxbyte > &array) const |
write binary to array | |
uint32_t | getDriverVersion () const |
get AMD driver version | |
void | setDriverVersion (uint32_t driverVersion) |
set AMD driver version | |
GPUDeviceType | getDeviceType () const |
get GPU device type | |
void | setDeviceType (const GPUDeviceType deviceType) |
set GPU device type | |
BinaryFormat | getBinaryFormat () const |
get binary format | |
void | setBinaryFormat (BinaryFormat binFormat) |
set binary format | |
bool | is64Bit () const |
get bitness | |
void | set64Bit (bool this64Bit) |
set bitness | |
Flags | getFlags () const |
get flags | |
void | setFlags (Flags flags) |
set flags | |
const std::vector< CString > & | getIncludeDirs () const |
get include directory list | |
void | addIncludeDir (const CString &includeDir) |
adds include directory | |
const AsmSymbolMap & | getSymbolMap () const |
get symbols map | |
const std::vector< AsmSection > & | getSections () const |
get sections | |
const KernelMap & | getKernelMap () const |
get kernel map | |
const std::vector< AsmKernel > & | getKernels () const |
get kernels | |
bool | isAbsoluteSymbol (const AsmSymbol &symbol) const |
returns true if symbol contains absolute value | |
void | addInitialDefSym (const CString &symName, uint64_t value) |
add initiali defsyms | |
const AsmFormatHandler * | getFormatHandler () const |
get format handler | |
![]() | |
NonCopyableAndNonMovable () | |
constructor | |
NonCopyableAndNonMovable (const NonCopyableAndNonMovable &)=delete | |
copy-constructor | |
NonCopyableAndNonMovable (NonCopyableAndNonMovable &&)=delete | |
move-constructor | |
NonCopyableAndNonMovable & | operator= (const NonCopyableAndNonMovable &)=delete |
copy-assignment | |
NonCopyableAndNonMovable & | operator= (NonCopyableAndNonMovable &&)=delete |
move-asignment | |
Protected Member Functions | |
bool | readLine () |
helper for testing | |
main class of assembler
|
explicit |
constructor with filename and input stream
filename | filename |
input | input stream |
flags | assembler flags |
format | output format type |
deviceType | GPU device type |
msgStream | stream for warnings and errors |
printStream | stream for printing message by .print pseudo-ops |
|
explicit |
constructor with filename and input stream
filenames | filenames |
flags | assembler flags |
format | output format type |
deviceType | GPU device type |
msgStream | stream for warnings and errors |
printStream | stream for printing message by .print pseudo-ops |