class NHIRConditionalJump extends NHIRInstruction
Modifier and Type | Field and Description |
---|---|
int |
lhs
Lhs HIR id.
|
NBasicBlock |
onFalseDestination
Block to jump to on false.
|
NBasicBlock |
onTrueDestination
Block to jump to on true.
|
int |
opcode
Test expression opcode.
|
int |
rhs
Rhs HIR id.
|
block, hirMnemonic, id, lir, lType, sType
Constructor and Description |
---|
NHIRConditionalJump(NBasicBlock block,
int id,
int lhs,
int rhs,
int opcode,
NBasicBlock onTrueDestination,
NBasicBlock onFalseDestination)
Construct an NHIRConditionalJump 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 int lhs
public int rhs
public int opcode
public NBasicBlock onTrueDestination
public NBasicBlock onFalseDestination
public NHIRConditionalJump(NBasicBlock block, int id, int lhs, int rhs, int opcode, NBasicBlock onTrueDestination, NBasicBlock onFalseDestination)
block
- enclosing block.id
- identifier of the instruction.lhs
- Lhs HIR id.rhs
- Rhs HIR id.opcode
- opcode in the test.onTrueDestination
- block to jump to on true.onFalseDestination
- block to jump to on false.public NLIRInstruction toLir()
NHIRInstruction
toLir
in class NHIRInstruction
public String toString()
NHIRInstruction
toString
in class NHIRInstruction