Go to the documentation of this file.
50 TerminalRegister::TerminalRegister(
const Port& port,
int index)
51 : unit_(*port.parentUnit()), port_(port), index_(index), isImmUnit_(
false) {
56 __FILE__, __LINE__,
"TerminalRegister::TerminalRegister()",
57 "Unit of the terminal has invalid type");
83 __FILE__, __LINE__,
"TerminalRegister::registerFile()",
84 "Unit of the terminal is not of type RegisterFile");
104 __FILE__, __LINE__,
"TerminalRegister::immediateUnit()",
105 "Unit of the terminal is not of type ImmediateUnit");
136 __FILE__, __LINE__,
"TerminalRegister::setIndex()",
137 "Index out of range.");
166 return (other.
isGPR() &&
virtual bool isGPR() const
std::string toString() const
virtual TCEString name() const
virtual void setIndex(int index)
virtual int index() const
virtual const TTAMachine::RegisterFile & registerFile() const
virtual bool isImmediateRegister() const
virtual bool isUniversalMachineRegister() const
virtual const TTAMachine::ImmediateUnit & immediateUnit() const
TerminalRegister(const TTAMachine::Port &port, int index)
virtual int index() const
const TTAMachine::Unit & unit_
Unit of the terminal.
virtual int numberOfRegisters() const
virtual bool isImmediateRegister() const
virtual ~TerminalRegister()
Copying is allowed.
virtual const TTAMachine::Port & port() const
bool isImmUnit_
Unit type flag: true if immediate unit, false if register file.
virtual bool isGPR() const
virtual const TTAMachine::ImmediateUnit & immediateUnit() const
virtual TCEString toString() const
const TTAMachine::Port & port_
Port of the unit.
virtual const TTAMachine::RegisterFile & registerFile() const
virtual bool equals(const Terminal &other) const
find Finds info of the inner loops in the false
virtual Terminal * copy() const
short index_
Index of the register of the register file or immediate unit.