Enum Class BranchOpGen

java.lang.Object
java.lang.Enum<BranchOpGen>
ghidra.pcode.emu.jit.gen.op.BranchOpGen
All Implemented Interfaces:
OpGen<JitBranchOp>, Serializable, Comparable<BranchOpGen>, Constable

public enum BranchOpGen extends Enum<BranchOpGen> implements OpGen<JitBranchOp>
The generator for a branch.

With an JitPassage.IntBranch record, this simply looks up the label for the target block and emits a block transition followed by a goto.

With an JitPassage.ExtBranch record, this emits code to retire the target to the program counter, along with the target context and live variables. It then emits code to request the chained entry point from the target's exit slot and return it. The thread can then immediately execute the chained passage entry.