jon.recoil.org

Module Flambda2_term_basics.Or_variable

Values of type 'a must not contain names!

type 'a t =
  1. | Const of 'a
  2. | Var of Flambda2_identifiers.Variable.t * Debuginfo.t
    (*

    The Debuginfo.t will be used to give correct debugging information at the point in the code where the corresponding statically-allocated block is patched. It would typically identify the place where the original allocation occurred in the source code.

    *)
val compare : ('a -> 'a -> int) -> 'a Flambda2_term_basics.Or_variable.t -> 'a Flambda2_term_basics.Or_variable.t -> int
val value_map : 'a Flambda2_term_basics.Or_variable.t -> default:'b -> f:('a -> 'b) -> 'b
val is_const : 'a Flambda2_term_basics.Or_variable.t -> bool
val is_var : 'a Flambda2_term_basics.Or_variable.t -> bool