From 7cfc4e5146be5666419451bdd516f1f3f264d24a Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Sun, 25 Jan 2015 14:42:51 +0100 Subject: Imported Upstream version 8.5~beta1+dfsg --- kernel/nativecode.mli | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 kernel/nativecode.mli (limited to 'kernel/nativecode.mli') diff --git a/kernel/nativecode.mli b/kernel/nativecode.mli new file mode 100644 index 00000000..893db92d --- /dev/null +++ b/kernel/nativecode.mli @@ -0,0 +1,76 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* global -> unit + +val mk_open : string -> global + +type symbol + +val clear_symb_tbl : unit -> unit + +val get_value : symbol array -> int -> Nativevalues.t + +val get_sort : symbol array -> int -> sorts + +val get_name : symbol array -> int -> name + +val get_const : symbol array -> int -> constant + +val get_match : symbol array -> int -> Nativevalues.annot_sw + +val get_ind : symbol array -> int -> inductive + +val get_meta : symbol array -> int -> metavariable + +val get_evar : symbol array -> int -> existential + +val get_level : symbol array -> int -> Univ.Level.t + +val get_symbols_tbl : unit -> symbol array + +type code_location_update +type code_location_updates +type linkable_code = global list * code_location_updates + +val clear_global_tbl : unit -> unit + +val empty_updates : code_location_updates + +val register_native_file : string -> unit + +val compile_constant_field : env -> string -> constant -> + global list -> constant_body -> global list + +val compile_mind_field : string -> module_path -> label -> + global list -> mutual_inductive_body -> global list + +val mk_conv_code : env -> evars -> string -> constr -> constr -> linkable_code +val mk_norm_code : env -> evars -> string -> constr -> linkable_code + +val mk_library_header : dir_path -> global list + +val mod_uid_of_dirpath : dir_path -> string + +val link_info_of_dirpath : dir_path -> link_info + +val update_locations : code_location_updates -> unit + +val add_header_comment : global list -> string -> global list -- cgit v1.2.3