OpenASIP
2.0
|
#include <DisassemblyRegister.hh>
Public Member Functions | |
DisassemblyRegister (std::string rfName, Word index) | |
virtual | ~DisassemblyRegister () |
std::string | toString () const |
Public Member Functions inherited from DisassemblyElement | |
virtual | ~DisassemblyElement () |
Static Public Member Functions | |
static TCEString | registerName (const TTAMachine::RegisterFile &rf, int index, char delim='.') |
static TCEString | registerName (const TTAProgram::Terminal &term) |
static TCEString | registerName (const TCEString ®isterFileName, int index, char delim='.') |
Private Attributes | |
std::string | rfName_ |
Name of the register file. More... | |
Word | index_ |
Index of the register in the register file. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from DisassemblyElement | |
DisassemblyElement () | |
Represents a register in the disassembler.
Definition at line 51 of file DisassemblyRegister.hh.
DisassemblyRegister::DisassemblyRegister | ( | std::string | rfName, |
Word | index | ||
) |
The constructor.
rfName | Name of the register file. |
index | Index of the register in the register file. |
Definition at line 45 of file DisassemblyRegister.cc.
|
virtual |
|
static |
Returns a name of the register.
Does the int -> string conversion itself, because Conversion::toString() uses stringstream which is slow.
Definition at line 77 of file DisassemblyRegister.cc.
|
static |
Returns name of a register.
Definition at line 95 of file DisassemblyRegister.cc.
References TTAMachine::Component::name().
Referenced by BF2Scheduler::countLoopInvariantValueUsages(), RegisterCopyAdder::createAntidepsForReg(), DataDependenceGraph::createRegisterAntiDependenciesBetweenNodes(), DataDependenceGraph::destRenamed(), RegisterRenamer::findGuardRegisters(), DataDependenceGraphBuilder::findStaticRegisters(), DataDependenceGraph::firstRegisterCycle(), RegisterCopyAdder::fixDDGEdgesInTempRegChain(), DataDependenceGraph::fixInterBBAntiEdges(), CompiledSimCodeGenerator::guardPipelineTopSymbol(), DataDependenceGraph::guardRestored(), CompiledSimSymbolGenerator::immediateRegisterSymbol(), RegisterRenamer::initialize(), RegisterRenamer::initializeFreeRegisters(), DataDependenceGraph::lastRegisterCycle(), DataDependenceGraphBuilder::processDestination(), DataDependenceGraphBuilder::processSource(), registerName(), RegisterRenamer::registersOfRFs(), CompiledSimSymbolGenerator::registerSymbol(), BF2Scheduler::revertBBLiveRangeBookkeepingForDestination(), BF2Scheduler::revertBBLiveRangeBookkeepingForSource(), DataDependenceGraph::sourceRenamed(), toString(), PreOptimizer::tryToOptimizeAddressReg(), and DataDependenceGraph::unMergeUser().
|
static |
Returns name of a register which is in a terminalregister.
Definition at line 104 of file DisassemblyRegister.cc.
References TTAProgram::Terminal::index(), TTAProgram::Terminal::registerFile(), and registerName().
|
virtual |
Returns disassembly of the register file.
Implements DisassemblyElement.
Definition at line 66 of file DisassemblyRegister.cc.
References index_, registerName(), and rfName_.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), and TTAProgram::TerminalRegister::toString().
|
private |
Index of the register in the register file.
Definition at line 74 of file DisassemblyRegister.hh.
Referenced by toString().
|
private |
Name of the register file.
Definition at line 72 of file DisassemblyRegister.hh.
Referenced by toString().