OpenASIP
2.0
|
#include <TerminalInstructionAddress.hh>
Private Member Functions | |
TerminalInstructionAddress & | operator= (const TerminalInstructionAddress &) |
Assignment not allowed. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TTAProgram::TerminalImmediate | |
SimValue | value_ |
Value of the inline immediate. More... | |
An interface for Terminals that represent inline immediates that refer to (absolute) instruction addresses.
Definition at line 45 of file TerminalInstructionAddress.hh.
TTAProgram::TerminalInstructionAddress::TerminalInstructionAddress | ( | ) |
The constructor.
value | The value of the inline immediate (the address). |
space | The address space of the address the immediate refers to. |
ref | The instruction this address refers to. |
Definition at line 48 of file TerminalInstructionAddress.cc.
|
virtual |
|
pure virtual |
Returns the address held by this terminal.
WrongSubclass | if the terminal is not an instance of TerminalAddress. |
Reimplemented from TTAProgram::Terminal.
Implemented in TTAProgram::TerminalProgramOperation, and TTAProgram::TerminalInstructionReference.
Referenced by value().
|
pure virtual |
Creates an exact copy of the terminal and returns it.
Reimplemented from TTAProgram::TerminalImmediate.
Implemented in TTAProgram::TerminalProgramOperation, and TTAProgram::TerminalInstructionReference.
|
pure virtual |
Checks if terminals are equal.
other | Terminal to compare. |
Reimplemented from TTAProgram::TerminalImmediate.
Implemented in TTAProgram::TerminalProgramOperation, and TTAProgram::TerminalInstructionReference.
|
inlinevirtual |
Tells whether the terminal is an inline immediate value that refers to an instruction address.
Reimplemented from TTAProgram::Terminal.
Definition at line 50 of file TerminalInstructionAddress.hh.
|
private |
Assignment not allowed.
|
inlinevirtual |
Returns the value of the inline immediate.
WrongSubclass | never. |
Reimplemented from TTAProgram::TerminalImmediate.
Definition at line 53 of file TerminalInstructionAddress.hh.
References address(), and WORD_BITWIDTH.