Enum Class VmRegType

java.lang.Object
java.lang.Enum<VmRegType>
org.impulsegraph.vm.VmRegType
All Implemented Interfaces:
Serializable, Comparable<VmRegType>, Constable

public enum VmRegType extends Enum<VmRegType>
Closed algebraic enumeration of all 17 ImpulseVM register type tags (0x00 .. 0x10). Enables Java 21+ compiler-verified exhaustiveness in switch expressions without default catch-alls.
  • Enum Constant Details

    • T_NULL

      public static final VmRegType T_NULL
    • T_INT64

      public static final VmRegType T_INT64
    • T_NODE_ID

      public static final VmRegType T_NODE_ID
    • T_RELATION_ID

      public static final VmRegType T_RELATION_ID
    • T_BITSET_HANDLE

      public static final VmRegType T_BITSET_HANDLE
    • T_NODE_VECTOR

      public static final VmRegType T_NODE_VECTOR
    • T_CSR_SPAN

      public static final VmRegType T_CSR_SPAN
    • T_BOOLEAN

      public static final VmRegType T_BOOLEAN
    • T_FLOAT

      public static final VmRegType T_FLOAT
    • T_DOUBLE

      public static final VmRegType T_DOUBLE
    • T_VALUE_MAP

      public static final VmRegType T_VALUE_MAP
    • T_STRING_VECTOR

      public static final VmRegType T_STRING_VECTOR
    • T_FLOAT_VECTOR

      public static final VmRegType T_FLOAT_VECTOR
    • T_DOUBLE_VECTOR

      public static final VmRegType T_DOUBLE_VECTOR
    • T_UINT64_VECTOR

      public static final VmRegType T_UINT64_VECTOR
    • T_FRONTIER_STATE

      public static final VmRegType T_FRONTIER_STATE
    • T_LANE_FRONTIER

      public static final VmRegType T_LANE_FRONTIER
  • Method Details

    • values

      public static VmRegType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VmRegType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • tag

      public byte tag()
    • intTag

      public int intTag()
    • fromTagOrNull

      public static VmRegType fromTagOrNull(int rawTag)
      Total bijection from raw byte tag to VmRegType, or null if out of [0x00..0x10].
    • fromTag

      public static VmRegType fromTag(byte rawTag)
      Total bijection from raw byte tag to VmRegType; throws IMPULSE_VM_ERR_INVALID_REGISTER on unknown/corrupt tags outside [0x00..0x10].
    • isValidNodeSource

      public boolean isValidNodeSource()
      Exhaustive compiler-checked predicate for 1-bit single-lane node source registers. Intentionally omits default so adding a 18th enum constant forces a compile error.
    • isValidBitsetOperand

      public boolean isValidBitsetOperand()
      Exhaustive compiler-checked predicate for 1-bit set algebra registers (0x30..0x33).
    • isValidLaneFrontier

      public boolean isValidLaneFrontier()
      Exhaustive compiler-checked predicate for multi-lane bit-sliced frontier registers.
    • makeActiveMaskU64

      public static long makeActiveMaskU64(int numLanes)
      Safe 64-bit active lane mask generator avoiding Java's 1L << 64 == 1L shift-count wrap.