Package jminusminus
Class NHIRGetField
java.lang.Object
jminusminus.NHIRInstruction
jminusminus.NHIRGetField
HIR instruction representing JVM (get) field instructions.
-
Field Summary
Fields inherited from class jminusminus.NHIRInstruction
block, hirMnemonic, id, lir, lType, sType
-
Constructor Summary
ConstructorDescriptionNHIRGetField
(NBasicBlock block, int id, int opcode, String target, String name, String sType, String lType) Constructs an NHIRGetField object. -
Method Summary
Methods inherited from class jminusminus.NHIRInstruction
equals, id
-
Constructor Details
-
NHIRGetField
public NHIRGetField(NBasicBlock block, int id, int opcode, String target, String name, String sType, String lType) Constructs an NHIRGetField object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.opcode
- JVM opcode for the instruction.target
- target for the field.name
- name of the field.sType
- type (short name) of the field.lType
- type (long name) of the field.
-
-
Method Details
-
toLir
Converts and returns a low-level representation (LIR) of this HIR instruction. Also adds the returned LIR instruction to the list of LIR instructions for the block containing this instruction, along with any other intermediate LIR instructions needed.- Overrides:
toLir
in classNHIRInstruction
- Returns:
- the LIR instruction corresponding to this HIR instruction.
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNHIRInstruction
- Returns:
- a string representation of this instruction.
-