jon.recoil.org

Module Flambda2_simplify.Continuation_uses

Recording of the uses of a single continuation. This module also computes, for each parameter of the continuation, the join of all corresponding argument types across the recorded uses; and the environment to be used for simplifying the continuation itself.

type t
type arg_at_use = {
  1. arg_type : Flambda2_types.t;
  2. typing_env : Flambda2_types.Typing_env.t;
}
val number_of_uses : Flambda2_simplify.Continuation_uses.t -> int
val get_typing_env_no_more_than_one_use : Flambda2_simplify.Continuation_uses.t -> Flambda2_types.Typing_env.t option