-
-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathcomp_utils.rei
More file actions
57 lines (48 loc) · 1.22 KB
/
comp_utils.rei
File metadata and controls
57 lines (48 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
open Mashtree;
open Binaryen;
open Grain_typed;
let grain_main: string;
let grain_start: string;
let grain_env_name: string;
let grain_global_function_table: string;
let grain_memory: string;
let wasm_type: Types.allocation_type => Type.t;
let encoded_int32: int => int;
let const_int32: int => Literal.t;
let const_int64: int => Literal.t;
let const_float32: float => Literal.t;
let const_float64: float => Literal.t;
/* These are like the above 'const' functions, but take inputs
of the underlying types instead */
let wrap_int32: int32 => Literal.t;
let wrap_int64: int64 => Literal.t;
let wrap_float32: float => Literal.t;
let wrap_float64: float => Literal.t;
let compile_const: constant => Literal.t;
let const_true: unit => Literal.t;
let const_false: unit => Literal.t;
let const_void: unit => Literal.t;
let store:
(
~ty: Type.t=?,
~align: int=?,
~offset: int=?,
~sz: int=?,
Module.t,
Expression.t,
Expression.t
) =>
Expression.t;
let load:
(
~ty: Type.t=?,
~align: int=?,
~offset: int=?,
~sz: int=?,
~signed: bool=?,
Module.t,
Expression.t
) =>
Expression.t;
let write_universal_exports:
(Module.t, Cmi_format.cmi_infos, list(export), string => string) => unit;