Package jminusminus
Class NLIRLoadLocal
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRLoadLocal
LIR instruction representing a formal parameter.
-
Field Summary
Fields inherited from class jminusminus.NLIRInstruction
block, id, lirMnemonic, reads, write
-
Constructor Summary
ConstructorDescriptionNLIRLoadLocal
(NBasicBlock block, int id, int local, String sType, String lType) Constructs an NLIRLoadLocal object. -
Method Summary
Methods inherited from class jminusminus.NLIRInstruction
allocatePhysicalRegisters, toSpim
-
Constructor Details
-
NLIRLoadLocal
Constructs an NLIRLoadLocal object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.local
- local variable index.sType
- short type name of the instruction.lType
- long type name of the instruction.
-
-
Method Details
-
getLocal
public int getLocal()Returns the local variable index for this instruction.- Returns:
- the local variable index for this instruction.
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNLIRInstruction
- Returns:
- a string representation of this instruction.
-