gem5
|
#include <hsail_code.hh>
Public Member Functions | |
StorageMap (StorageMap *outerScope=nullptr) | |
StorageElement * | addSymbol (const Brig::BrigDirectiveVariable *sym, const BrigObject *obj) |
StorageElement * | findSymbol (Brig::BrigSegment segment, std::string name) |
StorageElement * | findSymbol (Brig::BrigSegment segment, uint64_t addr) |
StorageElement * | findSymbol (Brig::BrigSegment segment, const Brig::BrigDirectiveVariable *brigptr) |
StorageElement * | findSymbol (Brig::BrigSegment8_t segment, std::string name) |
int | getSize (Brig::BrigSegment segment) |
void | resetOffset (Brig::BrigSegment segment) |
Private Attributes | |
StorageMap * | outerScopeMap |
StorageSpace * | space [NumSegments] |
Definition at line 267 of file hsail_code.hh.
StorageMap::StorageMap | ( | StorageMap * | outerScope = nullptr | ) |
Definition at line 359 of file hsail_code.cc.
References ArmISA::i, NumSegments, and space.
StorageElement * StorageMap::addSymbol | ( | const Brig::BrigDirectiveVariable * | sym, |
const BrigObject * | obj | ||
) |
Definition at line 367 of file hsail_code.cc.
References StorageSpace::addSymbol(), Brig::BRIG_SEGMENT_FLAT, NumSegments, Brig::BrigDirectiveVariable::segment, and space.
Referenced by HsailCode::init(), and BrigObject::processDirectives().
StorageElement * StorageMap::findSymbol | ( | Brig::BrigSegment | segment, |
std::string | name | ||
) |
Definition at line 404 of file hsail_code.cc.
References StorageSpace::findSymbol(), findSymbol(), outerScopeMap, and space.
Referenced by findSymbol(), HsailCode::findSymbol(), and AddrOperandBase::parseAddr().
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.
|
inline |
Definition at line 286 of file hsail_code.hh.
References findSymbol().
int StorageMap::getSize | ( | Brig::BrigSegment | segment | ) |
Definition at line 378 of file hsail_code.cc.
References Brig::BRIG_SEGMENT_GLOBAL, Brig::BRIG_SEGMENT_GROUP, Brig::BRIG_SEGMENT_READONLY, StorageSpace::getSize(), getSize(), NumSegments, outerScopeMap, and space.
Referenced by getSize(), HsailCode::getSize(), and BrigObject::processDirectives().
void StorageMap::resetOffset | ( | Brig::BrigSegment | segment | ) |
Definition at line 398 of file hsail_code.cc.
References StorageSpace::resetOffset(), and space.
Referenced by HsailCode::init().
|
private |
Definition at line 269 of file hsail_code.hh.
Referenced by findSymbol(), and getSize().
|
private |
Definition at line 270 of file hsail_code.hh.
Referenced by addSymbol(), findSymbol(), getSize(), resetOffset(), and StorageMap().