Package jminusminus
Class NHIRConditionalJump
java.lang.Object
jminusminus.NHIRInstruction
jminusminus.NHIRConditionalJump
HIR instruction representing an conditional jump instructions in JVM.
- 
Field SummaryFields inherited from class jminusminus.NHIRInstructionblock, hirMnemonic, id, lir, lType, sType
- 
Constructor SummaryConstructorsConstructorDescriptionNHIRConditionalJump(NBasicBlock block, int id, int lhs, int rhs, int opcode, NBasicBlock onTrueDestination, NBasicBlock onFalseDestination) Constructs an NHIRConditionalJump object.
- 
Method SummaryMethods inherited from class jminusminus.NHIRInstructionequals, id
- 
Constructor Details- 
NHIRConditionalJumppublic NHIRConditionalJump(NBasicBlock block, int id, int lhs, int rhs, int opcode, NBasicBlock onTrueDestination, NBasicBlock onFalseDestination) Constructs an NHIRConditionalJump object.- Parameters:
- 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.
 
 
- 
- 
Method Details- 
toLirConverts and returns a low-level representation (LIR) of this HIR instruction. Also adds the returned LIR instruction to the list of LIR instructions for the block containing this instruction, along with any other intermediate LIR instructions needed.- Overrides:
- toLirin class- NHIRInstruction
- Returns:
- the LIR instruction corresponding to this HIR instruction.
 
- 
toStringReturns a string representation of this instruction.- Overrides:
- toStringin class- NHIRInstruction
- Returns:
- a string representation of this instruction.
 
 
-