OpenASIP
2.0
|
#include <TerminalProgramOperation.hh>
Private Member Functions | |
TerminalProgramOperation & | operator= (const TerminalProgramOperation &) |
Assignment not allowed. More... | |
Private Attributes | |
ProgramOperationPtr | po_ |
The referred PO. The pointer can be copied, e.g. to DDG. More... | |
TCEString | label_ |
Additional Inherited Members | |
Protected Attributes inherited from TTAProgram::TerminalImmediate | |
SimValue | value_ |
Value of the inline immediate. More... | |
Represents an inline immediate that refers to a program operation (a set of moves constituting a single execution of an operation in the program).
The returned instruction address is the one of the trigger move of the tracked ProgramOperation. This class is used to refer to the location of an another ProgramOperation strictly (not wanting to refer to the beginning of a BB).
Definition at line 51 of file TerminalProgramOperation.hh.
TTAProgram::TerminalProgramOperation::TerminalProgramOperation | ( | TCEString | label | ) |
Constructs an incomplete TerminalProgramOperation.
This can be used when a TerminalProgramOperation might point to an non-existing PO during builing of the program.
label | A textual label of the target PO. Should be used later to find the correct PO. |
Definition at line 62 of file TerminalProgramOperation.cc.
Referenced by copy().
TTAProgram::TerminalProgramOperation::TerminalProgramOperation | ( | ProgramOperationPtr | po | ) |
The constructor.
po | The ProgramOperation to track. |
Definition at line 48 of file TerminalProgramOperation.cc.
|
virtual |
|
virtual |
Returns the instruction address of the trigger move in the tracked ProgramOperation.
Returns 0 in case the target PO is not in a program, thus its address is not known.
Implements TTAProgram::TerminalInstructionAddress.
Definition at line 82 of file TerminalProgramOperation.cc.
References assert, isAddressKnown(), and po_.
|
virtual |
Creates an exact copy of the terminal and returns it.
Implements TTAProgram::TerminalInstructionAddress.
Definition at line 99 of file TerminalProgramOperation.cc.
References label_, po_, and TerminalProgramOperation().
|
virtual |
Checks if terminals are equal.
Implements TTAProgram::TerminalInstructionAddress.
Definition at line 109 of file TerminalProgramOperation.cc.
References TTAProgram::Terminal::isInstructionAddress(), and po_.
bool TTAProgram::TerminalProgramOperation::isAddressKnown | ( | ) | const |
Definition at line 88 of file TerminalProgramOperation.cc.
References isProgramOperationKnown(), and po_.
Referenced by address().
|
inline |
Definition at line 65 of file TerminalProgramOperation.hh.
References po_.
Referenced by llvm::LLVMTCEBuilder::fixProgramOperationReferences(), and isAddressKnown().
|
inlinevirtual |
Reimplemented from TTAProgram::Terminal.
Definition at line 69 of file TerminalProgramOperation.hh.
|
inline |
Definition at line 77 of file TerminalProgramOperation.hh.
References label_.
Referenced by ControlFlowGraph::buildMBBFromBB(), and llvm::LLVMTCEBuilder::fixProgramOperationReferences().
|
private |
Assignment not allowed.
|
inline |
Definition at line 57 of file TerminalProgramOperation.hh.
References po_.
Referenced by ControlFlowGraph::buildMBBFromBB().
|
inline |
Definition at line 61 of file TerminalProgramOperation.hh.
References po_.
Referenced by llvm::LLVMTCEBuilder::fixProgramOperationReferences().
|
private |
Definition at line 84 of file TerminalProgramOperation.hh.
|
private |
The referred PO. The pointer can be copied, e.g. to DDG.
Definition at line 83 of file TerminalProgramOperation.hh.
Referenced by address(), copy(), equals(), isAddressKnown(), isProgramOperationKnown(), programOperation(), and setProgramOperation().