gem5
|
#include <hsail_code.hh>
Public Member Functions | |
StorageSpace (Brig::BrigSegment _class) | |
StorageElement * | addSymbol (const Brig::BrigDirectiveVariable *sym, const BrigObject *obj) |
StorageElement * | findSymbol (std::string name) |
StorageElement * | findSymbol (uint64_t addr) |
StorageElement * | findSymbol (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 |
Definition at line 238 of file hsail_code.hh.
|
private |
Definition at line 241 of file hsail_code.hh.
|
inline |
Definition at line 251 of file hsail_code.hh.
StorageElement * StorageSpace::addSymbol | ( | const Brig::BrigDirectiveVariable * | sym, |
const BrigObject * | obj | ||
) |
Definition at line 288 of file hsail_code.cc.
References Brig::BRIG_TYPE_ARRAY, Brig::BrigDirectiveVariable::dim, DPRINTF, elements, elements_by_addr, elements_by_brigptr, getBrigDataTypeBytes(), BrigObject::getString(), Brig::BrigUInt64::hi, Brig::BrigDirectiveVariable::init, AddrRangeMap< V >::insert(), Brig::BrigUInt64::lo, Brig::BrigDirectiveVariable::name, nextOffset, ArmISA::offset, roundUp(), segment, segmentNames, X86ISA::size(), and Brig::BrigDirectiveVariable::type.
Referenced by StorageMap::addSymbol().
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 | ) |
Definition at line 332 of file hsail_code.cc.
References elements_by_addr, AddrRangeMap< V >::end(), AddrRangeMap< V >::find(), and AddrRangeMap< V >::size().
StorageElement * StorageSpace::findSymbol | ( | const Brig::BrigDirectiveVariable * | brigptr | ) |
Definition at line 346 of file hsail_code.cc.
References elements_by_brigptr.
|
inline |
Definition at line 263 of file hsail_code.hh.
References nextOffset.
Referenced by StorageMap::getSize().
|
inline |
Definition at line 264 of file hsail_code.hh.
References nextOffset.
Referenced by StorageMap::resetOffset().
|
private |
Definition at line 243 of file hsail_code.hh.
Referenced by addSymbol(), and findSymbol().
|
private |
Definition at line 244 of file hsail_code.hh.
Referenced by addSymbol(), and findSymbol().
|
private |
Definition at line 245 of file hsail_code.hh.
Referenced by addSymbol(), and findSymbol().
|
private |
Definition at line 247 of file hsail_code.hh.
Referenced by addSymbol(), getSize(), and resetOffset().
|
private |
Definition at line 248 of file hsail_code.hh.
Referenced by addSymbol().