OpenASIP
2.0
|
#include <ParserStructs.hh>
Public Types | |
enum | MoveType { EMPTY, LONG_IMMEDIATE, TRANSPORT } |
Types of instruction slots. More... | |
Public Member Functions | |
ParserMove () | |
ParserMove (MoveType aType, bool begin) | |
std::string | toString () const |
Public Attributes | |
MoveType | type |
Type of move. More... | |
bool | isBegin |
Tells whether the slot is the first of the instruction. More... | |
ParserGuard | guard |
Guard field. More... | |
ParserSource | source |
Source field. More... | |
RegisterTerm | destination |
Destination field. More... | |
UValue | asmLineNumber |
Line number of source code for errors. More... | |
std::vector< Annotation > | annotationes |
All info of one parsed instruction slot.
Instruction slot defines a move or long immediate. An instruction slot can also be empty (unused).
Definition at line 391 of file ParserStructs.hh.
enum ParserMove::MoveType |
Types of instruction slots.
Enumerator | |
---|---|
EMPTY | Empty move slot. |
LONG_IMMEDIATE | Encoding of one long immediate slot. |
TRANSPORT | Data transport (move). |
Definition at line 394 of file ParserStructs.hh.
|
inline |
|
inline |
Constructor.
aType | Type of created move. |
begin | Is first move of an instruction. |
Definition at line 431 of file ParserStructs.hh.
|
inline |
String representation of term for error message generation.
Definition at line 438 of file ParserStructs.hh.
References annotationes, destination, EMPTY, guard, LONG_IMMEDIATE, source, RegisterTerm::toString(), ParserSource::toString(), ParserGuard::toString(), TRANSPORT, and type.
std::vector<Annotation> ParserMove::annotationes |
Definition at line 415 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove(), and toString().
UValue ParserMove::asmLineNumber |
Line number of source code for errors.
Definition at line 413 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove().
RegisterTerm ParserMove::destination |
Destination field.
Definition at line 411 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove(), and toString().
ParserGuard ParserMove::guard |
Guard field.
Definition at line 407 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove(), and toString().
bool ParserMove::isBegin |
Tells whether the slot is the first of the instruction.
Definition at line 404 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove().
ParserSource ParserMove::source |
Source field.
Definition at line 409 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove(), and toString().
MoveType ParserMove::type |
Type of move.
Definition at line 401 of file ParserStructs.hh.
Referenced by CodeSectionCreator::addMove(), and toString().