jon.recoil.org

Module Runtime_shape.Runtime_layout

type t =
  1. | Value
    (*

    Regular OCaml value, traversable by the GC

    *)
  2. | Float64
  3. | Float32
  4. | Bits8
  5. | Bits16
  6. | Bits32
  7. | Bits64
  8. | Vec128
  9. | Vec256
  10. | Vec512
  11. | Word
  12. | Untagged_immediate
val size_in_memory : t -> int

Size in memory, accounting for padding in memory (minimum Arch.size_addr).

val size : t -> int

Actual size of the value in bytes.

val of_base_layout : Sort.base -> t Or_void.t

Convert from Sort.base, returning Void for void layouts.

val to_base_layout : t -> Sort.base

Convert back to Sort.base.

val to_string : t -> string
val print : Format.formatter -> t -> unit
val equal : t -> t -> bool
val hash : t -> int