OpenASIP
2.0
|
#include <FixedRegisters.hh>
Public Member Functions | |
FixedRegisters () | |
virtual | ~FixedRegisters () |
SimValue & | stackPointer () const |
SimValue & | integerArgumentRegister (int index) const |
SimValue & | floatArgumentRegister (int index) const |
SimValue & | integerReturnValue () const |
SimValue & | floatReturnValue () const |
void | setStackPointer (SimValue &value) |
void | addIntegerArgumentRegister (SimValue &value) |
void | addFloatArgumentRegister (SimValue &value) |
void | setIntegerReturnValue (SimValue &value) |
void | setFloatReturnValue (SimValue &value) |
Private Member Functions | |
FixedRegisters (const FixedRegisters &) | |
Copying not allowed. More... | |
FixedRegisters & | operator= (const FixedRegisters) |
Assignment not allowed. More... | |
Private Attributes | |
SimValue * | stackPointer_ |
Stack pointer. More... | |
std::vector< SimValue * > | integerArgs_ |
Integer argument registers. More... | |
std::vector< SimValue * > | floatArgs_ |
Floating point argument registers. More... | |
SimValue * | intReturnValue_ |
Integer return value. More... | |
SimValue * | floatReturnValue_ |
Floating point return value. More... | |
Contains all the registers that are assigned to special purpose.
Definition at line 44 of file FixedRegisters.hh.
FixedRegisters::FixedRegisters | ( | ) |
Constructor.
Definition at line 39 of file FixedRegisters.cc.
|
virtual |
|
private |
Copying not allowed.
void FixedRegisters::addFloatArgumentRegister | ( | SimValue & | value | ) |
Adds new float argument register.
value | New float argument register value. |
Definition at line 144 of file FixedRegisters.cc.
References floatArgs_.
void FixedRegisters::addIntegerArgumentRegister | ( | SimValue & | value | ) |
Adds new integer argument register.
value | New integer argument register value. |
Definition at line 134 of file FixedRegisters.cc.
References integerArgs_.
SimValue & FixedRegisters::floatArgumentRegister | ( | int | index | ) | const |
Returns float argument register with a given index.
If index is out of range, returns NullSimValue.
Definition at line 85 of file FixedRegisters.cc.
References floatArgs_, and NullSimValue::instance().
SimValue & FixedRegisters::floatReturnValue | ( | ) | const |
Returns float return value.
Definition at line 111 of file FixedRegisters.cc.
References floatReturnValue_, and NullSimValue::instance().
SimValue & FixedRegisters::integerArgumentRegister | ( | int | index | ) | const |
Returns integer argument with a given index.
If index is out of range, returns NullSimValue.
Definition at line 70 of file FixedRegisters.cc.
References NullSimValue::instance(), and integerArgs_.
SimValue & FixedRegisters::integerReturnValue | ( | ) | const |
Returns integer return value.
Definition at line 98 of file FixedRegisters.cc.
References NullSimValue::instance(), and intReturnValue_.
|
private |
Assignment not allowed.
void FixedRegisters::setFloatReturnValue | ( | SimValue & | value | ) |
Sets float return value to new value.
value | New value. |
Definition at line 164 of file FixedRegisters.cc.
References floatReturnValue_.
void FixedRegisters::setIntegerReturnValue | ( | SimValue & | value | ) |
Sets integer return value to new value.
value | New value. |
Definition at line 154 of file FixedRegisters.cc.
References intReturnValue_.
void FixedRegisters::setStackPointer | ( | SimValue & | value | ) |
Sets stack pointer to new value.
value | New value. |
Definition at line 124 of file FixedRegisters.cc.
References stackPointer_.
SimValue & FixedRegisters::stackPointer | ( | ) | const |
Returns the stack pointer value.
Definition at line 55 of file FixedRegisters.cc.
References NullSimValue::instance(), and stackPointer_.
|
private |
Floating point argument registers.
Definition at line 72 of file FixedRegisters.hh.
Referenced by addFloatArgumentRegister(), and floatArgumentRegister().
|
private |
Floating point return value.
Definition at line 76 of file FixedRegisters.hh.
Referenced by floatReturnValue(), and setFloatReturnValue().
|
private |
Integer argument registers.
Definition at line 70 of file FixedRegisters.hh.
Referenced by addIntegerArgumentRegister(), and integerArgumentRegister().
|
private |
Integer return value.
Definition at line 74 of file FixedRegisters.hh.
Referenced by integerReturnValue(), and setIntegerReturnValue().
|
private |
Stack pointer.
Definition at line 68 of file FixedRegisters.hh.
Referenced by setStackPointer(), and stackPointer().