Package iota
Class NLirArithmetic
java.lang.Object
iota.NLirInstruction
iota.NLirArithmetic
Representation of an arithmetic instruction.
-
Field Summary
Fields inherited from class iota.NLirInstruction
block, id, lir2Marvin, mnemonic, reads, write
-
Constructor Summary
ConstructorsConstructorDescriptionNLirArithmetic
(NBasicBlock block, int id, String mnemonic, NLirInstruction lhs, NLirInstruction rhs) Constructs an NLirArithmetic object. -
Method Summary
Methods inherited from class iota.NLirInstruction
id
-
Constructor Details
-
NLirArithmetic
public NLirArithmetic(NBasicBlock block, int id, String mnemonic, NLirInstruction lhs, NLirInstruction rhs) Constructs an NLirArithmetic object.- Parameters:
block
- enclosing basic block.id
- instruction id.mnemonic
- instruction mnemonic.lhs
- lhs instruction.rhs
- rhs instruction.
-
-
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.
-