class NLIRLoad extends NLIRInstruction
block, id, lirMnemonic, reads, write
Constructor and Description |
---|
NLIRLoad(NBasicBlock block,
int id,
int offset,
OffsetFrom offsetFrom,
NRegister register)
Construct an NLIRLoad 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 NLIRLoad(NBasicBlock block, int id, int offset, OffsetFrom offsetFrom, NRegister register)
block
- enclosing block.id
- identifier of the instruction.offset
- stack offset to load from.offsetFrom
- whether offset relative to stack pointer (sp) or frame pointer
(fp).register
- register to load 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