OpenASIP
2.0
|
#include <TerminalInstructionReference.hh>
Private Member Functions | |
TerminalInstructionAddress & | operator= (const TerminalInstructionAddress &) |
Assignment not allowed. More... | |
Private Attributes | |
InstructionReference | ref_ |
Referred instruction. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TTAProgram::TerminalImmediate | |
SimValue | value_ |
Value of the inline immediate. More... | |
Represents an inline immediate that refers to an (absolute) instruction address via the InstructionReference indirection.
Definition at line 48 of file TerminalInstructionReference.hh.
TTAProgram::TerminalInstructionReference::TerminalInstructionReference | ( | InstructionReference | ref | ) |
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 51 of file TerminalInstructionReference.cc.
Referenced by copy().
|
virtual |
|
virtual |
Returns the value of the immediate (instruction address).
Implements TTAProgram::TerminalInstructionAddress.
Definition at line 67 of file TerminalInstructionReference.cc.
References TTAProgram::Instruction::address(), TTAProgram::InstructionReference::instruction(), and ref_.
|
virtual |
Creates an exact copy of the terminal and returns it.
Implements TTAProgram::TerminalInstructionAddress.
Definition at line 111 of file TerminalInstructionReference.cc.
References ref_, and TerminalInstructionReference().
|
virtual |
Checks if terminals are equal.
other | Terminal to compare. |
Implements TTAProgram::TerminalInstructionAddress.
Definition at line 122 of file TerminalInstructionReference.cc.
References TTAProgram::TerminalBasicBlockReference::basicBlock(), TTAProgram::CodeSnippet::firstInstruction(), TTAProgram::InstructionReference::instruction(), instructionReference(), and ref_.
Referenced by ControlFlowGraph::sanitize().
|
virtual |
Reimplemented from TTAProgram::Terminal.
|
virtual |
Returns a reference to the instruction to which the immediate points.
WrongSubclass | never. |
Reimplemented from TTAProgram::Terminal.
Definition at line 78 of file TerminalInstructionReference.cc.
References ref_.
Referenced by ControlFlowGraph::createBBEdges(), TTAProgram::TerminalBasicBlockReference::equals(), equals(), and ControlFlowGraph::removeJumpToTarget().
|
private |
Assignment not allowed.
|
virtual |
Set a new referred instruction.
ref | The new instruction reference. |
WrongSubclass | never. |
Reimplemented from TTAProgram::Terminal.
Definition at line 100 of file TerminalInstructionReference.cc.
References ref_.
Referenced by CopyingDelaySlotFiller::updateJumpsAndCfg().
|
private |
Referred instruction.
Definition at line 64 of file TerminalInstructionReference.hh.
Referenced by address(), copy(), equals(), instructionReference(), and setInstructionReference().