Package iota
Class NHirReturn
java.lang.Object
iota.NHirInstruction
iota.NHirReturn
Representation of a return instruction.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNHirReturn
(NBasicBlock block, int id) Constructs an NHirReturn object for return instruction without a value.NHirReturn
(NBasicBlock block, int id, int value) Constructs an NHirReturn object for return instruction with a value. -
Method Summary
Methods inherited from class iota.NHirInstruction
id
-
Field Details
-
value
public int valueInstruction id of the return value.
-
-
Constructor Details
-
NHirReturn
Constructs an NHirReturn object for return instruction without a value.- Parameters:
block
- enclosing basic block.id
- instruction id.
-
NHirReturn
Constructs an NHirReturn object for return instruction with a value.- Parameters:
block
- enclosing basic block.id
- instruction id.value
- instruction id of the return value.
-
-
Method Details
-
toLir
Converts and returns a low-level representation (LIR) of this instruction.- Specified by:
toLir
in classNHirInstruction
- Returns:
- the LIR instruction corresponding to this instruction.
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNHirInstruction
- Returns:
- a string representation of this instruction.
-