Package jminusminus
Class NHIRIntConstant
java.lang.Object
jminusminus.NHIRInstruction
jminusminus.NHIRIntConstant
HIR instruction corresponding to the JVM instructions representing integer constants.
-
Field Summary
Fields inherited from class jminusminus.NHIRInstruction
block, hirMnemonic, id, lir, lType, sType
-
Constructor Summary
ConstructorDescriptionNHIRIntConstant
(NBasicBlock block, int id, int value) Constructs an NHIRIntConstant object. -
Method Summary
Methods inherited from class jminusminus.NHIRInstruction
equals, id
-
Constructor Details
-
NHIRIntConstant
Constructs an NHIRIntConstant object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.value
- the constant int value.
-
-
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.
-