Skip to content

Commit e6876c8

Browse files
committed
kynd --> jkind
1 parent 773ad6d commit e6876c8

File tree

100 files changed

+2250
-2250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2250
-2250
lines changed

backend/cmmgen.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,13 @@ let is_strict : kind_for_unboxing -> bool = function
398398
(* [exttype_of_sort] and [machtype_of_sort] should be kept in sync with
399399
[Typeopt.layout_of_const_sort]. *)
400400
(* CR layouts v5: Void case should probably be typ_void *)
401-
let exttype_of_sort (s : Kynd.Sort.const) =
401+
let exttype_of_sort (s : Jkind.Sort.const) =
402402
match s with
403403
| Value -> XInt
404404
| Float64 -> XFloat
405405
| Void -> Misc.fatal_error "Cmmgen.exttype_of_sort: void encountered"
406406

407-
let machtype_of_sort (s : Kynd.Sort.const) =
407+
let machtype_of_sort (s : Jkind.Sort.const) =
408408
match s with
409409
| Value -> typ_val
410410
| Float64 -> typ_float

chamelon/compat.jst.ml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ open Typedtree
22
open Types
33
open Mode
44

5-
let dummy_kynd = Kynd.value ~why:Type_argument
5+
let dummy_jkind = Jkind.value ~why:Type_argument
66
let dummy_value_mode = Value.legacy
7-
let mkTvar name = Tvar { name; kynd = dummy_kynd }
7+
let mkTvar name = Tvar { name; jkind = dummy_jkind }
88

99
let mkTarrow (label, t1, t2, comm) =
1010
Tarrow ((label, Alloc.legacy, Alloc.legacy), t1, t2, comm)
@@ -43,8 +43,8 @@ type texp_function_identifier = {
4343
region : bool;
4444
curry : fun_curry_state;
4545
warnings : Warnings.state;
46-
arg_sort : Kynd.sort;
47-
ret_sort : Kynd.sort;
46+
arg_sort : Jkind.sort;
47+
ret_sort : Jkind.sort;
4848
}
4949

5050
let texp_function_defaults =
@@ -55,8 +55,8 @@ let texp_function_defaults =
5555
region = false;
5656
curry = Final_arg { partial_mode = Alloc.legacy };
5757
warnings = Warnings.backup ();
58-
arg_sort = Kynd.Sort.value;
59-
ret_sort = Kynd.Sort.value;
58+
arg_sort = Jkind.Sort.value;
59+
ret_sort = Jkind.Sort.value;
6060
}
6161

6262
let mkTexp_function ?(id = texp_function_defaults)
@@ -76,14 +76,14 @@ let mkTexp_function ?(id = texp_function_defaults)
7676
ret_sort = id.ret_sort;
7777
}
7878

79-
type texp_sequence_identifier = Kynd.sort
79+
type texp_sequence_identifier = Jkind.sort
8080

81-
let mkTexp_sequence ?id:(sort = Kynd.Sort.value) (e1, e2) =
81+
let mkTexp_sequence ?id:(sort = Jkind.Sort.value) (e1, e2) =
8282
Texp_sequence (e1, sort, e2)
8383

84-
type texp_match_identifier = Kynd.sort
84+
type texp_match_identifier = Jkind.sort
8585

86-
let mkTexp_match ?id:(sort = Kynd.Sort.value) (e, cases, partial) =
86+
let mkTexp_match ?id:(sort = Jkind.Sort.value) (e, cases, partial) =
8787
Texp_match (e, sort, cases, partial)
8888

8989
type matched_expression_desc =
@@ -180,9 +180,9 @@ let view_tpat (type a) (p : a pattern_desc) : a matched_pattern_desc =
180180
| Tpat_array (mut, l) -> Tpat_array (l, mut)
181181
| _ -> O p
182182

183-
type tstr_eval_identifier = Kynd.sort
183+
type tstr_eval_identifier = Jkind.sort
184184

185-
let mkTstr_eval ?id:(sort = Kynd.Sort.value) (e, attrs) =
185+
let mkTstr_eval ?id:(sort = Jkind.Sort.value) (e, attrs) =
186186
Tstr_eval (e, sort, attrs)
187187

188188
type matched_structure_item_desc =
@@ -194,9 +194,9 @@ let view_tstr (si : structure_item_desc) =
194194
| Tstr_eval (e, sort, attrs) -> Tstr_eval (e, attrs, sort)
195195
| _ -> O si
196196

197-
type arg_identifier = Kynd.sort
197+
type arg_identifier = Jkind.sort
198198

199-
let mkArg ?id:(sort = Kynd.Sort.value) e = Arg (e, sort)
199+
let mkArg ?id:(sort = Jkind.Sort.value) e = Arg (e, sort)
200200

201201
let map_arg_or_omitted f arg =
202202
match arg with Arg (e, sort) -> Arg (f e, sort) | Omitted o -> Omitted o
@@ -223,7 +223,7 @@ let mk_constructor_description cstr_name =
223223
cstr_attributes = [];
224224
cstr_inlined = None;
225225
cstr_uid = Uid.internal_not_actually_unique;
226-
cstr_arg_kynds = [||];
226+
cstr_arg_jkinds = [||];
227227
cstr_repr = Variant_boxed [||];
228228
cstr_constant = true;
229229
}
@@ -234,7 +234,7 @@ let mk_value_binding ~vb_pat ~vb_expr ~vb_attributes =
234234
vb_expr;
235235
vb_attributes;
236236
vb_loc = Location.none;
237-
vb_sort = Kynd.Sort.value;
237+
vb_sort = Jkind.Sort.value;
238238
}
239239

240240
let mkTtyp_any = Ttyp_var (None, None)

middle_end/convert_primitives.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ let convert (prim : Lambda.primitive) : Clambda_primitives.primitive =
160160
~effects:Only_generative_effects
161161
~coeffects:Has_coeffects
162162
~native_name:"caml_obj_dup"
163-
~native_repr_args:[P.Prim_global, P.Same_as_ocaml_repr Kynd.Sort.Value]
164-
~native_repr_res:(P.Prim_global, P.Same_as_ocaml_repr Kynd.Sort.Value))
163+
~native_repr_args:[P.Prim_global, P.Same_as_ocaml_repr Jkind.Sort.Value]
164+
~native_repr_res:(P.Prim_global, P.Same_as_ocaml_repr Jkind.Sort.Value))
165165
| Punbox_float -> Punbox_float
166166
| Pbox_float m -> Pbox_float m
167167
| Punbox_int bi -> Punbox_int bi

native_toplevel/opttopdirs.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ let match_printer_type ppf desc typename =
138138
raise Exit
139139
in
140140
Ctype.begin_def();
141-
let ty_arg = Ctype.newvar (Kynd.value ~why:Debug_printer_argument) in
141+
let ty_arg = Ctype.newvar (Jkind.value ~why:Debug_printer_argument) in
142142
Ctype.unify !toplevel_env
143143
(Ctype.newconstr printer_type [ty_arg])
144144
(Ctype.instance desc.val_type);

0 commit comments

Comments
 (0)