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

#include <hsail_code.hh>

Public Member Functions

 StorageSpace (Brig::BrigSegment _class)
 
StorageElementaddSymbol (const Brig::BrigDirectiveVariable *sym, const BrigObject *obj)
 
StorageElementfindSymbol (std::string name)
 
StorageElementfindSymbol (uint64_t addr)
 
StorageElementfindSymbol (const Brig::BrigDirectiveVariable *brigptr)
 
int getSize ()
 
void resetOffset ()
 

Private Types

typedef std::map< const
Brig::BrigDirectiveVariable
*, StorageElement * > 
DirVarToSE_map
 

Private Attributes

std::list< StorageElement * > elements
 
AddrRangeMap< StorageElement * > elements_by_addr
 
DirVarToSE_map elements_by_brigptr
 
uint64_t nextOffset
 
Brig::BrigSegment segment
 

Detailed Description

Definition at line 238 of file hsail_code.hh.

Member Typedef Documentation

Definition at line 241 of file hsail_code.hh.

Constructor & Destructor Documentation

StorageSpace::StorageSpace ( Brig::BrigSegment  _class)
inline

Definition at line 251 of file hsail_code.hh.

Member Function Documentation

StorageElement * StorageSpace::addSymbol ( const Brig::BrigDirectiveVariable sym,
const BrigObject obj 
)
StorageElement * StorageSpace::findSymbol ( std::string  name)

Definition at line 320 of file hsail_code.cc.

References elements.

Referenced by StorageMap::findSymbol().

StorageElement * StorageSpace::findSymbol ( uint64_t  addr)
StorageElement * StorageSpace::findSymbol ( const Brig::BrigDirectiveVariable brigptr)

Definition at line 346 of file hsail_code.cc.

References elements_by_brigptr.

int StorageSpace::getSize ( )
inline

Definition at line 263 of file hsail_code.hh.

References nextOffset.

Referenced by StorageMap::getSize().

void StorageSpace::resetOffset ( )
inline

Definition at line 264 of file hsail_code.hh.

References nextOffset.

Referenced by StorageMap::resetOffset().

Member Data Documentation

std::list<StorageElement*> StorageSpace::elements
private

Definition at line 243 of file hsail_code.hh.

Referenced by addSymbol(), and findSymbol().

AddrRangeMap<StorageElement*> StorageSpace::elements_by_addr
private

Definition at line 244 of file hsail_code.hh.

Referenced by addSymbol(), and findSymbol().

DirVarToSE_map StorageSpace::elements_by_brigptr
private

Definition at line 245 of file hsail_code.hh.

Referenced by addSymbol(), and findSymbol().

uint64_t StorageSpace::nextOffset
private

Definition at line 247 of file hsail_code.hh.

Referenced by addSymbol(), getSize(), and resetOffset().

Brig::BrigSegment StorageSpace::segment
private

Definition at line 248 of file hsail_code.hh.

Referenced by addSymbol().


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

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