gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
HsaObject Class Referenceabstract

#include <hsa_object.hh>

Inheritance diagram for HsaObject:
BrigObject

Public Member Functions

 HsaObject (const std::string &fileName)
 
virtual HsaCodegetKernel (const std::string &name) const =0
 
virtual HsaCodegetKernel (int i) const =0
 
virtual HsaCodegetFunction (const std::string &name) const =0
 
virtual int numKernels () const =0
 
const std::string & name () const
 

Static Public Member Functions

static HsaObjectcreateHsaObject (const std::string &fname)
 

Public Attributes

uint8_t * readonlyData
 

Static Public Attributes

static std::vector
< std::function< HsaObject
*(const std::string &, int,
uint8_t *)> > 
tryFileFuncs = { BrigObject::tryFile }
 

Protected Attributes

const std::string filename
 

Detailed Description

Definition at line 51 of file hsa_object.hh.

Constructor & Destructor Documentation

HsaObject::HsaObject ( const std::string &  fileName)

Definition at line 43 of file hsa_object.cc.

Member Function Documentation

HsaObject * HsaObject::createHsaObject ( const std::string &  fname)
static

Definition at line 49 of file hsa_object.cc.

References MipsISA::ate, fatal, and tryFileFuncs.

Referenced by ClDriver::ClDriver().

virtual HsaCode* HsaObject::getFunction ( const std::string &  name) const
pure virtual

Implemented in BrigObject.

virtual HsaCode* HsaObject::getKernel ( const std::string &  name) const
pure virtual

Implemented in BrigObject.

Referenced by ClDriver::ClDriver().

virtual HsaCode* HsaObject::getKernel ( int  i) const
pure virtual

Implemented in BrigObject.

const std::string& HsaObject::name ( ) const
inline

Definition at line 65 of file hsa_object.hh.

References filename.

virtual int HsaObject::numKernels ( ) const
pure virtual

Implemented in BrigObject.

Referenced by ClDriver::ClDriver().

Member Data Documentation

const std::string HsaObject::filename
protected

Definition at line 71 of file hsa_object.hh.

Referenced by name().

uint8_t* HsaObject::readonlyData

Definition at line 67 of file hsa_object.hh.

Referenced by ClDriver::ClDriver().

std::vector< std::function< HsaObject *(const std::string &, int, uint8_t *)> > HsaObject::tryFileFuncs = { BrigObject::tryFile }
static

Definition at line 58 of file hsa_object.hh.

Referenced by createHsaObject().


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

Generated on Fri Jun 9 2017 13:04:12 for gem5 by doxygen 1.8.6