CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
Public Member Functions | List of all members
CLRX::GalliumElfBinary32 Class Reference

32-bit Gallium ELF binary More...

#include <GalliumBinaries.h>

Inheritance diagram for CLRX::GalliumElfBinary32:
CLRX::GalliumElfBinaryBase

Public Member Functions

 GalliumElfBinary32 ()
 empty constructor
 
 GalliumElfBinary32 (size_t binaryCodeSize, cxbyte *binaryCode, Flags creationFlags, size_t kernelsNum)
 constructor
 
virtual ~GalliumElfBinary32 ()
 destructor
 
bool hasProgInfoMap () const
 return true if binary has program info map
 
const char * getDisassembly () const
 return disassembly content (without null-character)
 
size_t getTextRelEntriesNum () const
 get text rel entries number
 
const Elf32_RelgetTextRelEntry (size_t index) const
 get text rel entry
 
Elf32_RelgetTextRelEntry (size_t index)
 get text rel entry
 
- Public Member Functions inherited from CLRX::GalliumElfBinaryBase
 GalliumElfBinaryBase ()
 empty constructor
 
virtual ~GalliumElfBinaryBase ()
 destructor
 
uint32_t getProgramInfosNum () const
 returns program infos number
 
uint32_t getProgramInfoEntriesNum (uint32_t index) const
 returns number of program info entries for program info
 
uint32_t getProgramInfoEntryIndex (const char *name) const
 returns index for programinfo entries index for specified kernel name
 
const GalliumProgInfoEntrygetProgramInfo (const char *name) const
 returns program info entries for specified kernel name
 
GalliumProgInfoEntrygetProgramInfo (const char *name)
 returns program info entries for specified kernel name
 
const GalliumProgInfoEntrygetProgramInfo (uint32_t index) const
 returns program info entries for specified kernel index
 
GalliumProgInfoEntrygetProgramInfo (uint32_t index)
 returns program info entries for specified kernel index
 
bool hasDisassembly () const
 returns true if disassembly available
 
size_t getDisassemblySize () const
 returns size of disassembly
 
bool isLLVM390 () const
 returns true binary for if >=LLVM 3.9
 
size_t getScratchRelocsNum () const
 return scratch buffer relocations number
 
const GalliumScratchRelocgetScratchReloc (size_t i) const
 return scratch buffer relocation by index
 
const Array< GalliumScratchReloc > & getScratchRelocs () const
 return all scratch buffer relocations
 

Additional Inherited Members

- Public Types inherited from CLRX::GalliumElfBinaryBase
typedef Array< std::pair< const char *, size_t > > ProgInfoEntryIndexMap
 program info entry index map
 
- Protected Member Functions inherited from CLRX::GalliumElfBinaryBase
template<typename ElfBinary >
void loadFromElf (ElfBinary &elfBinary, size_t kernelsNum)
 routine to load binary fro internal ELF
 
- Protected Attributes inherited from CLRX::GalliumElfBinaryBase
uint32_t progInfosNum
 program info entries number
 
GalliumProgInfoEntryprogInfoEntries
 program info entries
 
ProgInfoEntryIndexMap progInfoEntryMap
 program info map
 
size_t disasmSize
 disassembly size
 
size_t disasmOffset
 disassembly offset
 
bool llvm390
 true if >= LLVM 3.9
 
Array< GalliumScratchRelocscratchRelocs
 

Detailed Description

32-bit Gallium ELF binary

ULEV function is required to access programInfoEntry fields


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