class NLIRStringConstant extends NLIRInstruction
| Modifier and Type | Field and Description |
|---|---|
String |
value
The constant string value.
|
block, id, lirMnemonic, reads, write| Constructor and Description |
|---|
NLIRStringConstant(NBasicBlock block,
int id,
String value)
Construct an NHIRStringConstant instruction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allocatePhysicalRegisters()
Replace references to virtual registers in this LIR instruction with
references to physical registers.
|
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.
|
public String value
public NLIRStringConstant(NBasicBlock block, int id, String value)
block - enclosing block.id - identifier for the instruction.value - the constant string value.public void allocatePhysicalRegisters()
NLIRInstructionallocatePhysicalRegisters in class NLIRInstructionpublic void toSpim(PrintWriter out)
NLIRInstructiontoSpim in class NLIRInstructionout - output stream for SPIM code.public String toString()
NLIRInstructiontoString in class NLIRInstruction