1998-04-06 02:15:55 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
1998-04-06 02:15:55 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1998 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1998-04-06 02:15:55 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* Auxiliaries for type-based optimizations, e.g. array kinds *)
|
|
|
|
|
2014-11-17 04:04:32 -08:00
|
|
|
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
|
2000-02-21 10:14:56 -08:00
|
|
|
val has_base_type : Typedtree.expression -> Path.t -> bool
|
2014-11-17 04:04:32 -08:00
|
|
|
|
|
|
|
val maybe_pointer_type : Env.t -> Types.type_expr -> bool
|
1998-04-06 02:15:55 -07:00
|
|
|
val maybe_pointer : Typedtree.expression -> bool
|
2014-11-17 04:04:32 -08:00
|
|
|
|
|
|
|
val array_type_kind : Env.t -> Types.type_expr -> Lambda.array_kind
|
1998-04-06 02:15:55 -07:00
|
|
|
val array_kind : Typedtree.expression -> Lambda.array_kind
|
|
|
|
val array_pattern_kind : Typedtree.pattern -> Lambda.array_kind
|
2014-11-17 04:04:32 -08:00
|
|
|
val bigarray_type_kind_and_layout :
|
|
|
|
Env.t -> Types.type_expr -> Lambda.bigarray_kind * Lambda.bigarray_layout
|