Module Alloc_mode.For_allocations
type t = private | Heap(*Normal allocation on the OCaml heap.
*)| Local of {region : Flambda2_identifiers.Variable.t;
}(*Allocation on the local allocation stack in the given region.
*)
Decisions on allocation locations
val print : Format.formatter -> t -> unitval heap : tval local : region:Flambda2_identifiers.Variable.t -> tReturns Heap if stack allocation is disabled!
val as_type : t -> For_types.tval from_lambda :
Lambda.locality_mode ->
current_region:Flambda2_identifiers.Variable.t option ->
tinclude Flambda2_nominal.Contains_names.S with type t := t
val free_names : t -> Flambda2_nominal.Name_occurrences.tCompute the free names of a term. Such computation covers all kinds of bindable names (variables, continuations, ...)
val apply_renaming : t -> Flambda2_nominal.Renaming.t -> tApply a renaming throughout a term.
include Flambda2_nominal.Contains_ids.S with type t := t
val ids_for_export : t -> Flambda2_nominal.Ids_for_export.tGather all table identifiers to export them.