OpenASIP
2.0
|
#include <MoveElement.hh>
Public Types | |
enum | FieldType { MF_NULL, MF_RF, MF_IMM, MF_UNIT } |
Public Member Functions | |
MoveElement () | |
virtual | ~MoveElement () |
bool | isEmpty () const |
void | setEmpty (bool flag) |
HalfWord | bus () const |
void | setBus (HalfWord aBus) |
FieldType | sourceType () const |
void | setSourceType (FieldType aType) |
HalfWord | sourceUnit () const |
void | setSourceUnit (HalfWord aSourceUnit) |
HalfWord | sourceIndex () const |
void | setSourceIndex (HalfWord aSourceIndex) |
FieldType | destinationType () const |
void | setDestinationType (FieldType aType) |
HalfWord | destinationUnit () const |
void | setDestinationUnit (HalfWord aDestinationUnit) |
HalfWord | destinationIndex () const |
void | setDestinationIndex (HalfWord aDestinationIndex) |
FieldType | guardType () const |
void | setGuardType (FieldType gType) |
HalfWord | guardUnit () const |
void | setGuardUnit (HalfWord aGuardUnit) |
HalfWord | guardIndex () const |
void | setGuardIndex (HalfWord aGuardIndex) |
bool | isGuarded () const |
void | setGuarded (bool flag) |
bool | isGuardInverted () const |
void | setGuardInverted (bool flag) |
Public Member Functions inherited from TPEF::InstructionElement | |
virtual | ~InstructionElement () |
bool | isMove () const |
bool | isImmediate () const |
bool | begin () const |
void | setBegin (bool isBegin) |
InstructionAnnotation * | annotation (Word index) const |
void | addAnnotation (InstructionAnnotation *anAnnotation) |
Word | annotationCount () const |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Private Attributes | |
bool | isEmpty_ |
Empty move bit. More... | |
HalfWord | bus_ |
Move bus identifier. More... | |
FieldType | sourceType_ |
The type of Move source. More... | |
FieldType | destinationType_ |
The type of move destination. More... | |
HalfWord | sourceUnit_ |
Move source unit or register file. More... | |
HalfWord | destinationUnit_ |
Move destination unit or register file identifier. More... | |
HalfWord | sourceIndex_ |
Move source register index. More... | |
HalfWord | destinationIndex_ |
Move destination register index. More... | |
bool | isGuarded_ |
Move guard enable bit. More... | |
bool | isGuardInverted_ |
Move guard inverted bit. More... | |
FieldType | guardType_ |
Guard type. More... | |
HalfWord | guardUnit_ |
Guard register file / unit identifier. More... | |
HalfWord | guardIndex_ |
Guard register index. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TPEF::InstructionElement | |
InstructionElement (bool isMove) | |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
Move instruction.
Definition at line 47 of file MoveElement.hh.
Type of resource that is referred by unit / index pair.
Enumerator | |
---|---|
MF_NULL | Illegal field. |
MF_RF | Register file. |
MF_IMM | Immediate. |
MF_UNIT | Function unit. |
Definition at line 52 of file MoveElement.hh.
TPEF::MoveElement::MoveElement | ( | ) |
Constructor.
Move attributes are initialized to default values.
Definition at line 45 of file MoveElement.cc.
|
virtual |
HalfWord TPEF::MoveElement::bus | ( | ) | const |
HalfWord TPEF::MoveElement::destinationIndex | ( | ) | const |
FieldType TPEF::MoveElement::destinationType | ( | ) | const |
HalfWord TPEF::MoveElement::destinationUnit | ( | ) | const |
HalfWord TPEF::MoveElement::guardIndex | ( | ) | const |
FieldType TPEF::MoveElement::guardType | ( | ) | const |
HalfWord TPEF::MoveElement::guardUnit | ( | ) | const |
bool TPEF::MoveElement::isEmpty | ( | ) | const |
Referenced by TTAProgram::ProgramWriter::createCodeSection(), TPEFDisassembler::createInstruction(), TTAProgram::TPEFProgramFactory::createInstruction(), TTAProgram::TPEFProgramFactory::findInstrTemplate(), TPEF::TPEFCodeSectionWriter::writeAttributeField(), and TPEF::TPEFCodeSectionWriter::writeDataField().
bool TPEF::MoveElement::isGuarded | ( | ) | const |
bool TPEF::MoveElement::isGuardInverted | ( | ) | const |
void TPEF::MoveElement::setBus | ( | HalfWord | aBus | ) |
void TPEF::MoveElement::setDestinationIndex | ( | HalfWord | aDestinationIndex | ) |
void TPEF::MoveElement::setDestinationType | ( | FieldType | aType | ) |
void TPEF::MoveElement::setDestinationUnit | ( | HalfWord | aDestinationUnit | ) |
void TPEF::MoveElement::setEmpty | ( | bool | flag | ) |
void TPEF::MoveElement::setGuarded | ( | bool | flag | ) |
void TPEF::MoveElement::setGuardIndex | ( | HalfWord | aGuardIndex | ) |
void TPEF::MoveElement::setGuardInverted | ( | bool | flag | ) |
void TPEF::MoveElement::setGuardType | ( | FieldType | gType | ) |
void TPEF::MoveElement::setGuardUnit | ( | HalfWord | aGuardUnit | ) |
void TPEF::MoveElement::setSourceIndex | ( | HalfWord | aSourceIndex | ) |
void TPEF::MoveElement::setSourceType | ( | FieldType | aType | ) |
void TPEF::MoveElement::setSourceUnit | ( | HalfWord | aSourceUnit | ) |
HalfWord TPEF::MoveElement::sourceIndex | ( | ) | const |
FieldType TPEF::MoveElement::sourceType | ( | ) | const |
HalfWord TPEF::MoveElement::sourceUnit | ( | ) | const |
|
private |
Move bus identifier.
Definition at line 105 of file MoveElement.hh.
|
private |
Move destination register index.
Definition at line 117 of file MoveElement.hh.
|
private |
The type of move destination.
Definition at line 109 of file MoveElement.hh.
|
private |
Move destination unit or register file identifier.
Definition at line 113 of file MoveElement.hh.
|
private |
Guard register index.
Definition at line 127 of file MoveElement.hh.
|
private |
Guard type.
Definition at line 123 of file MoveElement.hh.
|
private |
Guard register file / unit identifier.
Definition at line 125 of file MoveElement.hh.
|
private |
Empty move bit.
Definition at line 103 of file MoveElement.hh.
|
private |
Move guard enable bit.
Definition at line 119 of file MoveElement.hh.
|
private |
Move guard inverted bit.
Definition at line 121 of file MoveElement.hh.
|
private |
Move source register index.
Definition at line 115 of file MoveElement.hh.
|
private |
The type of Move source.
Definition at line 107 of file MoveElement.hh.
|
private |
Move source unit or register file.
Definition at line 111 of file MoveElement.hh.