Package iota
Class NHirArithmetic
java.lang.Object
iota.NHirInstruction
iota.NHirArithmetic
Representation of an arithmetic instruction.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNHirArithmetic
(NBasicBlock block, int id, int opcode, int lhs, int rhs) Constructs an NHirArithmetic object. -
Method Summary
Methods inherited from class iota.NHirInstruction
id
-
Field Details
-
lhs
public int lhsLhs instruction id. -
rhs
public int rhsRhs instruction id.
-
-
Constructor Details
-
NHirArithmetic
Constructs an NHirArithmetic object.- Parameters:
block
- enclosing basic block.id
- instruction id.opcode
- instruction opcode.lhs
- lhs instruction id.rhs
- rhs instruction id.
-
-
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.
-