gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
HsailCode Class Referencefinal

#include <hsail_code.hh>

Inheritance diagram for HsailCode:
HsaCode

Public Member Functions

 HsailCode (const std::string &name_str, const Brig::BrigDirectiveExecutable *code_dir, const BrigObject *obj, StorageMap *objStorageMap)
 
 HsailCode (const std::string &name_str)
 
void init (const Brig::BrigDirectiveExecutable *code_dir, const BrigObject *obj, StorageMap *objStorageMap)
 
void generateHsaKernelInfo (HsaKernelInfo *hsaKernelInfo) const
 
int getSize (MemorySegment segment) const
 
StorageElementfindSymbol (Brig::BrigSegment segment, uint64_t addr)
 
void setPrivateSize (int32_t _private_size)
 
LabelrefLabel (const Brig::BrigDirectiveLabel *lbl, const BrigObject *obj)
 
- Public Member Functions inherited from HsaCode
 HsaCode (const std::string &name)
 
const std::string & name () const
 
int numInsts () const
 
std::vector
< TheGpuISA::RawMachInst > * 
insts ()
 
void setReadonlyData (uint8_t *_readonly_data)
 

Public Attributes

TheGpuISA::Decoder decoder
 
StorageMapstorageMap
 
LabelMap labelMap
 
uint32_t kernarg_start
 
uint32_t kernarg_end
 
int32_t private_size
 
int32_t readonly_size
 
uint32_t max_creg
 
uint32_t max_sreg
 
uint32_t max_dreg
 
- Public Attributes inherited from HsaCode
uint8_t * readonly_data
 
int funcarg_size
 

Private Member Functions

int getSize (Brig::BrigSegment segment) const
 

Additional Inherited Members

- Public Types inherited from HsaCode
enum  MemorySegment {
  MemorySegment::NONE, MemorySegment::FLAT, MemorySegment::GLOBAL, MemorySegment::READONLY,
  MemorySegment::KERNARG, MemorySegment::GROUP, MemorySegment::PRIVATE, MemorySegment::SPILL,
  MemorySegment::ARG, MemorySegment::EXTSPACE0
}
 
- Protected Attributes inherited from HsaCode
std::vector
< TheGpuISA::RawMachInst > 
_insts
 

Detailed Description

Definition at line 321 of file hsail_code.hh.

Constructor & Destructor Documentation

HsailCode::HsailCode ( const std::string &  name_str,
const Brig::BrigDirectiveExecutable code_dir,
const BrigObject obj,
StorageMap objStorageMap 
)

Definition at line 218 of file hsail_code.cc.

References init().

HsailCode::HsailCode ( const std::string &  name_str)

Definition at line 52 of file hsail_code.cc.

Member Function Documentation

StorageElement* HsailCode::findSymbol ( Brig::BrigSegment  segment,
uint64_t  addr 
)
inline

Definition at line 429 of file hsail_code.hh.

References StorageMap::findSymbol(), and storageMap.

Referenced by AddrOperandBase::parseAddr().

void HsailCode::generateHsaKernelInfo ( HsaKernelInfo hsaKernelInfo) const
inlinevirtual
int HsailCode::getSize ( MemorySegment  segment) const
inlinevirtual
int HsailCode::getSize ( Brig::BrigSegment  segment) const
inlineprivate
void HsailCode::init ( const Brig::BrigDirectiveExecutable code_dir,
const BrigObject obj,
StorageMap objStorageMap 
)
Label* HsailCode::refLabel ( const Brig::BrigDirectiveLabel lbl,
const BrigObject obj 
)
inline

Definition at line 441 of file hsail_code.hh.

References labelMap, and LabelMap::refLabel().

Referenced by LabelOperand::init().

void HsailCode::setPrivateSize ( int32_t  _private_size)
inline

Definition at line 435 of file hsail_code.hh.

References private_size.

Referenced by init().

Member Data Documentation

TheGpuISA::Decoder HsailCode::decoder

Definition at line 324 of file hsail_code.hh.

Referenced by init().

uint32_t HsailCode::kernarg_end

Definition at line 329 of file hsail_code.hh.

uint32_t HsailCode::kernarg_start

Definition at line 328 of file hsail_code.hh.

LabelMap HsailCode::labelMap

Definition at line 327 of file hsail_code.hh.

Referenced by init(), and refLabel().

uint32_t HsailCode::max_creg

Definition at line 337 of file hsail_code.hh.

Referenced by generateHsaKernelInfo(), and init().

uint32_t HsailCode::max_dreg

Definition at line 339 of file hsail_code.hh.

Referenced by generateHsaKernelInfo(), and init().

uint32_t HsailCode::max_sreg

Definition at line 338 of file hsail_code.hh.

Referenced by generateHsaKernelInfo(), and init().

int32_t HsailCode::private_size

Definition at line 330 of file hsail_code.hh.

Referenced by getSize(), and setPrivateSize().

int32_t HsailCode::readonly_size

Definition at line 332 of file hsail_code.hh.

StorageMap* HsailCode::storageMap

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