1 (***********************************************************************)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
7 (* Copyright 1998 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
11 (***********************************************************************)
13 (* $Id: typeopt.mli 2873 2000-02-28 15:45:50Z xleroy $ *)
15 (* Auxiliaries for type-based optimizations, e.g. array kinds *)
17 val has_base_type : Typedtree.expression -> Path.t -> bool
18 val maybe_pointer : Typedtree.expression -> bool
19 val array_kind : Typedtree.expression -> Lambda.array_kind
20 val array_pattern_kind : Typedtree.pattern -> Lambda.array_kind
21 val bigarray_kind_and_layout :
22 Typedtree.expression -> Lambda.bigarray_kind * Lambda.bigarray_layout