class NLIRInvoke extends NLIRInstruction
Modifier and Type | Field and Description |
---|---|
String |
name
Name of the method being invoked.
|
int |
opcode
Opcode of the JVM instruction.
|
String |
target
Target for the method.
|
block, id, lirMnemonic, reads, write
Constructor and Description |
---|
NLIRInvoke(NBasicBlock block,
int id,
int opcode,
String target,
String name,
ArrayList<NRegister> arguments,
String sType,
String lType)
Construct an NHIRInvoke 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 int opcode
public String target
public String name
public NLIRInvoke(NBasicBlock block, int id, int opcode, String target, String name, ArrayList<NRegister> arguments, String sType, String lType)
block
- enclosing block.id
- identifier of the instruction.opcode
- opcode of the JVM instruction.target
- target of the method.name
- name of the method.arguments
- list of register storing the of arguments for the method.sType
- return type (short name) of the method.lType
- return type (long name) of the method.public void allocatePhysicalRegisters()
NLIRInstruction
allocatePhysicalRegisters
in class NLIRInstruction
public void toSpim(PrintWriter out)
NLIRInstruction
toSpim
in class NLIRInstruction
out
- output stream for SPIM code.public String toString()
NLIRInstruction
toString
in class NLIRInstruction