class NLIRGoto extends NLIRInstruction
block, id, lirMnemonic, reads, write
Constructor and Description |
---|
NLIRGoto(NBasicBlock block,
int id,
NBasicBlock destination)
Construct an NLIRGoto instruction.
|
Modifier and Type | Method and Description |
---|---|
void |
toSpim(PrintWriter out)
Translate this LIR instruction into SPIM and write it out to the
specified output stream.
|
String |
toString()
Return a string representation of this instruction.
|
allocatePhysicalRegisters
public NLIRGoto(NBasicBlock block, int id, NBasicBlock destination)
block
- enclosing block.id
- identifier of the instruction.destination
- the block to jump to.public void toSpim(PrintWriter out)
NLIRInstruction
toSpim
in class NLIRInstruction
out
- output stream for SPIM code.public String toString()
NLIRInstruction
toString
in class NLIRInstruction