All Superinterfaces:
IEGeneric, IInstructionOperand

@Ser public interface IERange extends IEGeneric
This IR object represents immutable integer range object. They are terminal expressions used by slices.
  • Method Details

    • getBegin

      int getBegin()
      Returns:
      start bound (inclusive)
    • getEnd

      int getEnd()
      Returns:
      end bound (exclusive), must be greater than getBegin().
    • getRangeLength

      int getRangeLength()
    • shift

      IERange shift(int delta)
      Get a new range whose bounds have been shifted by a delta value. The range length (amplitude) is conserved.
      Parameters:
      delta - the shift, must be greater or equal to getBegin()
      Returns:
      a new range