Package jminusminus
Class NLIRGoto
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRGoto
LIR instruction representing an unconditional jump instruction in JVM.
-
Field Summary
Fields inherited from class jminusminus.NLIRInstruction
block, id, lirMnemonic, reads, write
-
Constructor Summary
ConstructorDescriptionNLIRGoto
(NBasicBlock block, int id, NBasicBlock destination) Constructs an NLIRGoto object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toSpim
(PrintWriter out) Translates this LIR instruction into SPIM and writes it out to the specified output stream.toString()
Returns a string representation of this instruction.Methods inherited from class jminusminus.NLIRInstruction
allocatePhysicalRegisters
-
Constructor Details
-
NLIRGoto
Constructs an NLIRGoto object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.destination
- the block to jump to.
-
-
Method Details
-
toSpim
Translates this LIR instruction into SPIM and writes it out to the specified output stream.- Overrides:
toSpim
in classNLIRInstruction
- Parameters:
out
- output stream for SPIM code.
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNLIRInstruction
- Returns:
- a string representation of this instruction.
-