OpenASIP
2.0
|
#include <ResourceElement.hh>
Public Types | |
enum | ResourceType { MRT_NULL = 0x00, MRT_BUS = 0x01, MRT_UNIT = 0x02, MRT_RF = 0x03, MRT_OP = 0x04, MRT_IMM = 0x05, MRT_SR = 0x06, MRT_PORT = 0x07 } |
Resource types. More... | |
enum | ReservedResourceIDs { UNIVERSAL_BUS = 0x00, UNIVERSAL_FU = 0x00, ILLEGAL_RF = 0x00, INT_RF = 0x80, BOOL_RF = 0x81, FP_RF = 0x82, UNIVERSAL_RF_MASK = 0x80, INLINE_IMM = 0x00 } |
Resource Id numbers that are reserved for some particular use. More... | |
Public Member Functions | |
ResourceElement () | |
virtual | ~ResourceElement () |
HalfWord | id () const |
void | setId (HalfWord aId) |
ResourceType | type () const |
void | setType (ResourceType aType) |
Word | info () const |
void | setInfo (Word aInfo) |
Chunk * | name () const |
void | setName (ReferenceManager::SafePointer *aName) |
void | setName (Chunk *aName) |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Static Public Attributes | |
static const std::string | RETURN_ADDRESS_NAME = "return-address" |
Reserved string of return address special register. More... | |
Private Attributes | |
HalfWord | id_ |
Unique id number that is used to refer resource. More... | |
ResourceType | type_ |
Type. More... | |
const ReferenceManager::SafePointer * | name_ |
Name. More... | |
Word | info_ |
Additional info. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
Resource table element.
Definition at line 47 of file ResourceElement.hh.
Resource Id numbers that are reserved for some particular use.
Definition at line 63 of file ResourceElement.hh.
Resource types.
Enumerator | |
---|---|
MRT_NULL | Illegal undefined machine resource. |
MRT_BUS | Transport bus. |
MRT_UNIT | Function unit. |
MRT_RF | Register file. |
MRT_OP | Operation operand or function unit register. |
MRT_IMM | Immediate unit. |
MRT_SR | Special register. |
MRT_PORT | Function unit port. |
Definition at line 51 of file ResourceElement.hh.
TPEF::ResourceElement::ResourceElement | ( | ) |
Constructs empty element.
Definition at line 46 of file ResourceElement.cc.
|
virtual |
HalfWord TPEF::ResourceElement::id | ( | ) | const |
Referenced by TPEF::TPEFResourceSectionWriter::actualWriteData(), MachineResourceManager::addResourceElement(), TTAProgram::TPEFResourceUpdater::bus(), TTAProgram::ProgramWriter::createCodeSection(), TPEFDisassembler::createInstruction(), TPEF::ResourceSection::findResource(), TTAProgram::TPEFResourceUpdater::functionUnit(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TPEF::ResourceSection::hasResource(), TTAProgram::TPEFResourceUpdater::immediateUnit(), TTAProgram::TPEFResourceUpdater::initCache(), TTAProgram::TPEFResourceUpdater::operand(), TTAProgram::TPEFResourceUpdater::registerFile(), TTAProgram::ProgramWriter::resolveFileType(), TPEFDumper::section(), and TTAProgram::ProgramWriter::terminalResource().
Word TPEF::ResourceElement::info | ( | ) | const |
Referenced by TPEF::TPEFResourceSectionWriter::actualWriteData(), and TPEFDumper::section().
Chunk* TPEF::ResourceElement::name | ( | ) | const |
Referenced by TPEF::TPEFResourceSectionWriter::actualWriteData(), MachineResourceManager::addResourceElement(), TTAProgram::TPEFResourceUpdater::bus(), TPEFDisassembler::createDisassemblyElement(), TTAProgram::TPEFProgramFactory::createTerminal(), TTAProgram::TPEFProgramFactory::findBus(), TTAProgram::TPEFProgramFactory::findFunctionUnit(), TTAProgram::TPEFProgramFactory::findGuard(), TTAProgram::TPEFProgramFactory::findImmediateUnit(), TTAProgram::TPEFProgramFactory::findRegisterFile(), TTAProgram::TPEFResourceUpdater::functionUnit(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TTAProgram::TPEFResourceUpdater::immediateUnit(), TTAProgram::TPEFResourceUpdater::initCache(), TTAProgram::TPEFResourceUpdater::operand(), TTAProgram::TPEFResourceUpdater::registerFile(), TPEF::TPEFTools::resourceName(), and TPEFDumper::section().
void TPEF::ResourceElement::setId | ( | HalfWord | aId | ) |
Referenced by TTAProgram::TPEFResourceUpdater::bus(), TTAProgram::TPEFResourceUpdater::functionUnit(), MachineResourceManager::functionUnitID(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TTAProgram::TPEFResourceUpdater::immediateUnit(), MachineResourceManager::initResourceSection(), TTAProgram::TPEFResourceUpdater::operand(), MachineResourceManager::opOrPortID(), TPEF::TPEFResourceSectionReader::readData(), TPEF::AOutSymbolSectionReader::readData(), TTAProgram::TPEFResourceUpdater::registerFile(), and MachineResourceManager::registerFileID().
void TPEF::ResourceElement::setInfo | ( | Word | aInfo | ) |
Referenced by TPEF::TPEFResourceSectionReader::readData().
void TPEF::ResourceElement::setName | ( | Chunk * | aName | ) |
void TPEF::ResourceElement::setName | ( | ReferenceManager::SafePointer * | aName | ) |
Referenced by TTAProgram::TPEFResourceUpdater::bus(), TTAProgram::TPEFResourceUpdater::functionUnit(), MachineResourceManager::functionUnitID(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TTAProgram::TPEFResourceUpdater::immediateUnit(), MachineResourceManager::initResourceSection(), TTAProgram::TPEFResourceUpdater::operand(), MachineResourceManager::opOrPortID(), TPEF::TPEFResourceSectionReader::readData(), TPEF::AOutSymbolSectionReader::readData(), TTAProgram::TPEFResourceUpdater::registerFile(), and MachineResourceManager::registerFileID().
void TPEF::ResourceElement::setType | ( | ResourceType | aType | ) |
Referenced by TTAProgram::TPEFResourceUpdater::bus(), TTAProgram::TPEFResourceUpdater::functionUnit(), MachineResourceManager::functionUnitID(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TTAProgram::TPEFResourceUpdater::immediateUnit(), MachineResourceManager::initResourceSection(), TTAProgram::TPEFResourceUpdater::operand(), MachineResourceManager::opOrPortID(), TPEF::TPEFResourceSectionReader::readData(), TPEF::AOutSymbolSectionReader::readData(), TTAProgram::TPEFResourceUpdater::registerFile(), and MachineResourceManager::registerFileID().
ResourceType TPEF::ResourceElement::type | ( | ) | const |
Referenced by TPEF::TPEFResourceSectionWriter::actualWriteData(), MachineResourceManager::addResourceElement(), TTAProgram::TPEFResourceUpdater::bus(), TPEFDisassembler::createInstruction(), TPEF::ResourceSection::findResource(), TTAProgram::TPEFResourceUpdater::functionUnit(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TPEF::ResourceSection::hasResource(), TTAProgram::TPEFResourceUpdater::immediateUnit(), TTAProgram::TPEFResourceUpdater::initCache(), TTAProgram::TPEFResourceUpdater::operand(), TTAProgram::TPEFResourceUpdater::registerFile(), TTAProgram::ProgramWriter::resolveFileType(), and TPEFDumper::section().
|
private |
Unique id number that is used to refer resource.
Definition at line 96 of file ResourceElement.hh.
|
private |
Additional info.
Definition at line 102 of file ResourceElement.hh.
|
private |
Name.
Definition at line 100 of file ResourceElement.hh.
|
static |
Reserved string of return address special register.
Definition at line 76 of file ResourceElement.hh.
|
private |
Type.
Definition at line 98 of file ResourceElement.hh.