Package iota
Class NLirLoad
java.lang.Object
iota.NLirInstruction
iota.NLirLoad
Representation of a load (from memory to register) instruction.
-
Field Summary
FieldsFields inherited from class iota.NLirInstruction
block, id, lir2Marvin, mnemonic, reads, write
-
Constructor Summary
ConstructorsConstructorDescriptionNLirLoad
(NBasicBlock block, int id, String mnemonic, NRegister to, NRegister from, int N) Constructs an NLirLoad object. -
Method Summary
Methods inherited from class iota.NLirInstruction
id
-
Field Details
-
N
public int NOffset from the base memory address to load from.
-
-
Constructor Details
-
NLirLoad
Constructs an NLirLoad object.- Parameters:
block
- enclosing block.id
- instruction id.mnemonic
- instruction mnemonic.to
- register (virtual or physical) to store into.from
- base memory address.N
- offset from base memory address to load 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.
-