Module Low_level.Read_site

gh-ocannl-2196: where one evaluation reads a contributor -- a Get's index expression, or a gather's static indices with its dynamic axis and spliced value. Equal keys name one cell.

type t =
  1. | Static of Indexing.axis_index Base.array
  2. | Gather of {
    1. idcs : Indexing.axis_index Base.array;
    2. dyn_axis : Base.int;
    3. dyn_value : scalar_arg;
    }
  3. | Iterated of t
    (*

    The site's index mentions a loop one evaluation iterates -- inside the right-hand side, or an enclosing reduction loop absent from the written indices -- so it reads a cell per trip, and is charged every alternative.

    *)
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
val sexp_of_t : t -> Sexplib0.Sexp.t
include Base.Comparator.S with type t := t
type comparator_witness
val comparator : (t, comparator_witness) Base__Comparator.comparator