OpenASIP
2.0
|
#include <NullInstruction.hh>
Static Public Member Functions | |
static NullInstruction & | instance () |
Protected Member Functions | |
NullInstruction () | |
Private Member Functions | |
NullInstruction (const NullInstruction &) | |
Copying not allowed. More... | |
NullInstruction & | operator= (const NullInstruction &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static NullInstruction | instance_ |
Unique instance of NullInstruction. More... | |
A singleton class that represents a null instruction.
Calling any method causes the program to abort.
Definition at line 45 of file NullInstruction.hh.
|
virtual |
|
protected |
The constructor.
Definition at line 49 of file NullInstruction.cc.
|
private |
Copying not allowed.
void TTAProgram::NullInstruction::addImmediate | ( | Immediate & | imm | ) |
Aborts program with error log message.
Definition at line 134 of file NullInstruction.cc.
References abortWithError.
void TTAProgram::NullInstruction::addMove | ( | Move & | move | ) |
Aborts program with error log message.
Definition at line 105 of file NullInstruction.cc.
References abortWithError.
Address & TTAProgram::NullInstruction::address | ( | ) | const |
Aborts program with error log message.
Definition at line 166 of file NullInstruction.cc.
References abortWithError, and TTAProgram::NullAddress::instance().
Immediate & TTAProgram::NullInstruction::immediate | ( | int | i | ) |
Aborts program with error log message.
Definition at line 154 of file NullInstruction.cc.
References __func__, and abortWithError.
int TTAProgram::NullInstruction::immediateCount | ( | ) |
Aborts program with error log message.
Definition at line 143 of file NullInstruction.cc.
References abortWithError.
|
static |
Returns an instance of NullInstruction class (singleton).
Definition at line 66 of file NullInstruction.cc.
References instance_.
Referenced by TTAProgram::CodeLabel::address(), CompiledSimUtilizationStats::calculate(), SimulationStatistics::calculate(), TTAProgram::CodeSnippet::clear(), TTAProgram::Move::copy(), TTAProgram::CodeSnippet::copy(), TTAProgram::NullProcedure::firstInstruction(), TTAProgram::NullProgram::firstInstruction(), RFAccessTracker::handleEvent(), TTAProgram::CodeSnippet::hasNextInstruction(), TTAProgram::InstructionReference::instruction(), TTAProgram::NullProcedure::instructionAt(), TTAProgram::NullProgram::instructionAt(), TTAProgram::CodeSnippet::instructionAt(), TTAProgram::CodeLabel::instructionReference(), TTAProgram::Move::isInInstruction(), TTAProgram::NullProcedure::lastInstruction(), TTAProgram::NullProgram::lastInstruction(), TTAProgram::NullProcedure::nextInstruction(), TTAProgram::NullProgram::nextInstruction(), TTAProgram::CodeSnippet::nextInstruction(), TTAProgram::Program::nextInstruction(), TTAProgram::Move::parent(), TTAProgram::NullProcedure::previousInstruction(), TTAProgram::CodeSnippet::previousInstruction(), TTAProgram::Instruction::removeMove(), TTAProgram::Move::setParent(), SimpleIfConverter::successors(), DisasmTopCountAttrProvider::updateTopCountTable(), TTAProgram::CodeSnippet::~CodeSnippet(), and TTAProgram::Instruction::~Instruction().
bool TTAProgram::NullInstruction::isInProcedure | ( | ) | const |
Aborts program with error log message.
Definition at line 96 of file NullInstruction.cc.
References abortWithError.
const Move & TTAProgram::NullInstruction::move | ( | int | i | ) | const |
Aborts program with error log message.
Definition at line 125 of file NullInstruction.cc.
References __func__, and abortWithError.
int TTAProgram::NullInstruction::moveCount | ( | ) |
Aborts program with error log message.
Definition at line 114 of file NullInstruction.cc.
References abortWithError.
|
private |
Assignment not allowed.
Procedure & TTAProgram::NullInstruction::parent | ( | ) | const |
Aborts program with error log message.
IllegalRegistration | never. |
Definition at line 77 of file NullInstruction.cc.
References abortWithError, and TTAProgram::NullProcedure::instance().
void TTAProgram::NullInstruction::setParent | ( | const Procedure & | proc | ) |
Aborts program with error log message.
Definition at line 86 of file NullInstruction.cc.
References abortWithError.
int TTAProgram::NullInstruction::size | ( | ) | const |
Aborts program with error log message.
Definition at line 177 of file NullInstruction.cc.
References abortWithError.
|
staticprivate |
Unique instance of NullInstruction.
Definition at line 76 of file NullInstruction.hh.
Referenced by instance().