Interface JitPassage.Branch

All Known Implementing Classes:
JitPassage.ErrBranch, JitPassage.ExtBranch, JitPassage.IndBranch, JitPassage.IntBranch
Enclosing class:
JitPassage

public static interface JitPassage.Branch
A branch in the p-code
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Get a string description of the branch target
    The op performing the branch
    default boolean
    Indicates whether this branch represents a fall-through case.
  • 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 when isFall is true. A "fall-through" branch happens in two cases. First, and most obvious, is to describe the fall-through case of a conditional 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

      default String describeTo()
      Get a string description of the branch target
      Returns:
      the description