package ocaml-compiler

Build not yet checked
  1. Overview
  2. Docs

doc/compiler-libs.common/Typeopt/index.html

Module Typeopt

val is_function_type : Env.t -> Types.type_expr -> (Types.type_expr * Types.type_expr) option
val is_base_type : Env.t -> Types.type_expr -> Path.t -> bool
val maybe_pointer_type : Env.t -> Types.type_expr -> Lambda.immediate_or_pointer
val array_type_kind : Env.t -> Types.type_expr -> Lambda.array_kind
val array_pattern_kind : Typedtree.pattern -> Lambda.array_kind
val bigarray_type_kind_and_layout : Env.t -> Types.type_expr -> Lambda.bigarray_kind * Lambda.bigarray_layout
val value_kind : Env.t -> Types.type_expr -> Lambda.value_kind
type lazy_summary =
  1. | Lazy_thunk
    (*

    Evaluation of e must be delayed inside a thunk.

    *)
  2. | Eager of forward_repr
    (*

    Evaluation of e can be done eagerly.

    *)

lazy_summary describes how the expression lazy e must be compiled.

and forward_repr =
  1. | Forward
    (*

    The value must be placed inside a Forward block.

    *)
  2. | Shortcut
    (*

    The value can be injected directly without wrapping.

    *)
val classify_lazy_argument : Typedtree.expression -> lazy_summary

value_kind_union k1 k2 is a value_kind at least as general as k1 and k2