OpenASIP
2.0
|
#include <Operand.hh>
Public Member Functions | |
virtual | ~NullOperand () |
virtual int | index () const |
virtual bool | isInput () const |
virtual bool | isOutput () const |
virtual bool | isAddress () const |
virtual bool | isMemoryData () const |
virtual bool | canSwap (const Operand &op) const |
virtual const std::set< int > & | swap () const |
virtual bool | isNull () const |
![]() | |
Operand (bool isInput) | |
Operand (bool isInput, int index, OperandType type) | |
Operand (const Operand &op) | |
virtual | ~Operand () |
virtual OperandType | type () const |
virtual void | setType (OperandType type) |
virtual const std::string & | typeString () const |
virtual TCEString | CTypeString () const |
virtual bool | isVector () const |
virtual int | elementWidth () const |
virtual void | setElementWidth (int elementWidth) |
virtual int | elementCount () const |
virtual void | setElementCount (int elementCount) |
virtual int | width () const |
virtual int | memoryUnits () const |
virtual void | loadState (const ObjectState *state) |
virtual ObjectState * | saveState () const |
![]() | |
virtual | ~Serializable () |
Static Public Member Functions | |
static NullOperand & | instance () |
![]() | |
static int | defaultElementWidth (OperandType type) |
Private Member Functions | |
NullOperand () | |
NullOperand & | operator= (const NullOperand &) |
Assignment not allowed. More... | |
Private Attributes | |
std::set< int > | swap_ |
Needed for one method, always empty. More... | |
Static Private Attributes | |
static NullOperand * | instance_ = NULL |
Unique instance. More... | |
Additional Inherited Members | |
![]() | |
enum | OperandType { SINT_WORD, UINT_WORD, FLOAT_WORD, DOUBLE_WORD, HALF_FLOAT_WORD, BOOL, RAW_DATA, SLONG_WORD, ULONG_WORD } |
![]() | |
static const std::string | SLONG_WORD_STRING = "SLongWord" |
static const std::string | ULONG_WORD_STRING = "ULongWord" |
static const std::string | SINT_WORD_STRING = "SIntWord" |
static const std::string | UINT_WORD_STRING = "UIntWord" |
static const std::string | HALF_FLOAT_WORD_STRING = "HalfFloatWord" |
static const std::string | FLOAT_WORD_STRING = "FloatWord" |
static const std::string | DOUBLE_WORD_STRING = "DoubleWord" |
static const std::string | BOOL_STRING = "Bool" |
static const std::string | RAW_DATA_STRING = "RawData" |
static const std::string | UNKNOWN_TYPE_STRING = "InvalidValue" |
static const std::string | OPRND_ID = "id" |
Object state name for operand id. More... | |
static const std::string | OPRND_TYPE = "type" |
Object state name for operand type. More... | |
static const std::string | OPRND_MEM_ADDRESS = "mem-address" |
Object state name for memory address. More... | |
static const std::string | OPRND_MEM_UNITS = "mem-units" |
Object state name for memory unit count. More... | |
static const std::string | OPRND_MEM_DATA = "mem-data" |
Object state name for memory data. More... | |
static const std::string | OPRND_CAN_SWAP = "can-swap" |
Object state name for can swap. More... | |
static const std::string | OPRND_IN = "in" |
Object state name for input operand. More... | |
static const std::string | OPRND_OUT = "out" |
Object state name for output operand. More... | |
static const std::string | OPRND_ELEM_WIDTH = "element-width" |
Object state name for element width. More... | |
static const std::string | OPRND_ELEM_COUNT = "element-count" |
Object state name for element count. More... | |
Singleton class that is used to represent a null operand.
All methods cause program abort with an error log message.
Definition at line 170 of file Operand.hh.
|
virtual |
|
private |
|
virtual |
Aborts the program with error message.
Reimplemented from Operand.
Definition at line 659 of file Operand.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from Operand.
Definition at line 593 of file Operand.cc.
References abortWithError.
|
static |
|
virtual |
Aborts program with error log message.
Reimplemented from Operand.
Definition at line 626 of file Operand.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from Operand.
Definition at line 604 of file Operand.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from Operand.
Definition at line 637 of file Operand.cc.
References abortWithError.
|
inlinevirtual |
|
virtual |
Aborts program with error log message.
Reimplemented from Operand.
Definition at line 615 of file Operand.cc.
References abortWithError.
|
private |
Assignment not allowed.
|
virtual |
Aborts program with error log message.
Reimplemented from Operand.
Definition at line 648 of file Operand.cc.
References abortWithError, and swap_.
|
staticprivate |
Unique instance.
Definition at line 191 of file Operand.hh.
|
private |
Needed for one method, always empty.
Definition at line 194 of file Operand.hh.
Referenced by swap().