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

#include <hsail_code.hh>

Public Member Functions

 StorageMap (StorageMap *outerScope=nullptr)
 
StorageElementaddSymbol (const Brig::BrigDirectiveVariable *sym, const BrigObject *obj)
 
StorageElementfindSymbol (Brig::BrigSegment segment, std::string name)
 
StorageElementfindSymbol (Brig::BrigSegment segment, uint64_t addr)
 
StorageElementfindSymbol (Brig::BrigSegment segment, const Brig::BrigDirectiveVariable *brigptr)
 
StorageElementfindSymbol (Brig::BrigSegment8_t segment, std::string name)
 
int getSize (Brig::BrigSegment segment)
 
void resetOffset (Brig::BrigSegment segment)
 

Private Attributes

StorageMapouterScopeMap
 
StorageSpacespace [NumSegments]
 

Detailed Description

Definition at line 267 of file hsail_code.hh.

Constructor & Destructor Documentation

StorageMap::StorageMap ( StorageMap outerScope = nullptr)

Definition at line 359 of file hsail_code.cc.

References ArmISA::i, NumSegments, and space.

Member Function Documentation

StorageElement * StorageMap::addSymbol ( const Brig::BrigDirectiveVariable sym,
const BrigObject obj 
)
StorageElement * StorageMap::findSymbol ( Brig::BrigSegment  segment,
std::string  name 
)
StorageElement * StorageMap::findSymbol ( Brig::BrigSegment  segment,
uint64_t  addr 
)

Definition at line 418 of file hsail_code.cc.

References StorageSpace::findSymbol(), findSymbol(), outerScopeMap, ArmISA::sp, and space.

StorageElement * StorageMap::findSymbol ( Brig::BrigSegment  segment,
const Brig::BrigDirectiveVariable brigptr 
)

Definition at line 440 of file hsail_code.cc.

References StorageSpace::findSymbol(), findSymbol(), outerScopeMap, ArmISA::sp, and space.

StorageElement* StorageMap::findSymbol ( Brig::BrigSegment8_t  segment,
std::string  name 
)
inline

Definition at line 286 of file hsail_code.hh.

References findSymbol().

int StorageMap::getSize ( Brig::BrigSegment  segment)
void StorageMap::resetOffset ( Brig::BrigSegment  segment)

Definition at line 398 of file hsail_code.cc.

References StorageSpace::resetOffset(), and space.

Referenced by HsailCode::init().

Member Data Documentation

StorageMap* StorageMap::outerScopeMap
private

Definition at line 269 of file hsail_code.hh.

Referenced by findSymbol(), and getSize().

StorageSpace* StorageMap::space[NumSegments]
private

Definition at line 270 of file hsail_code.hh.

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


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