36 #ifndef __BRIG_OBJECT_HH__
37 #define __BRIG_OBJECT_HH__
93 BrigObject(
const std::string &fname,
int len, uint8_t *fileData);
102 const uint8_t*
getData(
int offs)
const;
131 return (T*)((uint8_t*)ptr + size);
134 #endif // __BRIG_OBJECT_HH__
std::string kern_block_name
const Brig::BrigOperand * getOperand(int offs) const
std::vector< HsailCode * > functions
int numKernels() const override
const Brig::BrigInstBase * getInst(int offs) const
BrigObject(const std::string &fname, int len, uint8_t *fileData)
std::vector< HsailCode * > kernels
HsaCode * getKernel(int i) const override
SectionInfo sectionInfo[NumSectionIndices]
const uint8_t * getData(int offs) const
const char * getString(int offs) const
static const char * sectionNames[]
HsaCode * getFunction(const std::string &name) const override
HsaCode * getKernel(const std::string &name) const override
static HsaObject * tryFile(const std::string &fname, int len, uint8_t *fileData)
const Brig::BrigBase * getCodeSectionEntry(int offs) const
void processDirectives(const Brig::BrigBase *dirPtr, const Brig::BrigBase *endPtr, StorageMap *storageMap)
unsigned getOperandPtr(int offs, int index) const
const std::string & name() const
const Brig::BrigData * getBrigBaseData(int offs) const
const uint8_t * getSectionOffset(enum SectionIndex sec, int offs) const