Package ghidra.pcode.emu.jit
Interface JitPassage.Branch
- All Known Subinterfaces:
JitPassage.ExtBranch,JitPassage.IndBranch,JitPassage.IntBranch,JitPassage.PBranch,JitPassage.RBranch,JitPassage.SBranch
- All Known Implementing Classes:
JitPassage.ErrBranch,JitPassage.RExtBranch,JitPassage.RIndBranch,JitPassage.RIntBranch,JitPassage.SExtBranch,JitPassage.SIndBranch,JitPassage.SIntBranch
- Enclosing class:
JitPassage
public static interface JitPassage.Branch
A branch in the p-code
-
Method Details
-
from
PcodeOp from()The op performing the branch- Returns:
- the "from" op
-
isFall
default boolean isFall()Indicates whether this branch represents a fall-through case.Note that the
from()may not be an actual branching p-code op whenisFallis true. A "fall-through" branch happens in two cases. First, and most obvious, is to describe the fall-through case of aconditional branch. Second is when for a p-code op the immediately precedes the target of some other branch. That branch causes a split in basic blocks, and so to encode the fall through from that op into the basic block immediately after, a fall-through branch is added.- Returns:
- true if this branch is the fall-through case.
-
describeTo
Get a string description of the branch target- Returns:
- the description
-