Package iota
Class NLirInc
java.lang.Object
iota.NLirInstruction
iota.NLirInc
Representation of an instruction for incrementing (or decrementing) a register by a constant value.
-
Field Summary
FieldsFields inherited from class iota.NLirInstruction
block, id, lir2Marvin, mnemonic, reads, write
-
Constructor Summary
ConstructorsConstructorDescriptionNLirInc
(NBasicBlock block, int id, NRegister register, int N) Constructs an NLirInc object. -
Method Summary
Methods inherited from class iota.NLirInstruction
id
-
Field Details
-
N
public int NIncrement (or decrement) value.
-
-
Constructor Details
-
NLirInc
Constructs an NLirInc object.- Parameters:
block
- enclosing basic block.id
- instruction id.register
- the register to increment (or decrement).N
- increment (or decrement) value.
-
-
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.
-