class NHIRArithmetic extends NHIRInstruction
| Modifier and Type | Field and Description |
|---|---|
int |
lhs
Lhs HIR id.
|
int |
opcode
Opcode for the arithmetic operator.
|
int |
rhs
Rhs HIR id.
|
block, hirMnemonic, id, lir, lType, sType| Constructor and Description |
|---|
NHIRArithmetic(NBasicBlock block,
int id,
int opcode,
int lhs,
int rhs)
Construct an NHIRArithmetic 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, idpublic int opcode
public int lhs
public int rhs
public NHIRArithmetic(NBasicBlock block, int id, int opcode, int lhs, int rhs)
block - enclosing block.id - identifier of the instruction.opcode - opcode for the arithmetic operator.lhs - lhs HIR id.rhs - rhs HIR id.public NLIRInstruction toLir()
NHIRInstructiontoLir in class NHIRInstructionpublic String toString()
NHIRInstructiontoString in class NHIRInstruction