Package iota
Class NLirCopy
java.lang.Object
iota.NLirInstruction
iota.NLirCopy
Representation of an instruction for copying one register into another register.
-
Field Summary
Fields inherited from class iota.NLirInstruction
block, id, lir2Marvin, mnemonic, reads, write
-
Constructor Summary
ConstructorsConstructorDescriptionNLirCopy
(NBasicBlock block, int id, NRegister to, NRegister from) Constructs an NLirCopy object. -
Method Summary
Methods inherited from class iota.NLirInstruction
id
-
Constructor Details
-
NLirCopy
Constructs an NLirCopy object.- Parameters:
block
- enclosing block.id
- instruction id.to
- register (virtual or physical) to copy to.from
- register (virtual or physical) to copy from.
-
-
Method Details
-
toMarvin
public void toMarvin()Converts this instruction to the corresponding Marvin instruction.- Overrides:
toMarvin
in classNLirInstruction
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNLirInstruction
- Returns:
- a string representation of this instruction.
-