Go to the documentation of this file.
33 #ifndef TTA_LIMM_DST_REGISTER_FIELD_HH
34 #define TTA_LIMM_DST_REGISTER_FIELD_HH
65 virtual int width()
const;
82 typedef std::map<std::string, std::string>
StringMap;
void loadState(const ObjectState *state)
std::map< std::string, std::string > StringMap
Map type for strings.
StringMap destinationMap_
Maps instruction templates to immediate units.
int instructionTemplateCount() const
virtual ObjectState * saveState() const
static const std::string OSKEY_DST_IU
ObjectState attribute key for the name of the immediate unit.
std::string instructionTemplate(int index) const
LImmDstRegisterField(int width, BinaryEncoding &parent)
int width_
Width of the field.
std::string immediateUnit(const std::string &instructionTemplate) const
static const std::string OSKEY_WIDTH
ObjectState attribute key for the width of the field.
virtual int width() const
static const std::string OSNAME_IU_DESTINATION
ObjectState name for a immediate unit destination.
static const std::string OSNAME_LIMM_DST_REGISTER_FIELD
ObjectState name for long immediate destination register field.
bool usedByInstructionTemplate(const std::string &instructionTemplate) const
virtual ~LImmDstRegisterField()
virtual int childFieldCount() const
void addDestination(const std::string &instructionTemplate, const std::string &immediateUnit)
static const std::string OSKEY_ITEMP
ObjectState attribute key for the name of the instruction template.
BinaryEncoding * parent() const