class NHIRIntConstant extends NHIRInstruction
Modifier and Type | Field and Description |
---|---|
int |
value
The constant int value.
|
block, hirMnemonic, id, lir, lType, sType
Constructor and Description |
---|
NHIRIntConstant(NBasicBlock block,
int id,
int value)
Construct an NHIRIntConstant instruction.
|
Modifier and Type | Method and Description |
---|---|
NLIRInstruction |
toLir()
Convert and return a low-level representation (LIR) of this HIR
instruction.
|
String |
toString()
Return a string representation of this instruction.
|
equals, id
public NHIRIntConstant(NBasicBlock block, int id, int value)
block
- enclosing block.id
- identifier of the instruction.value
- the constant int value.public NLIRInstruction toLir()
NHIRInstruction
toLir
in class NHIRInstruction
public String toString()
NHIRInstruction
toString
in class NHIRInstruction