@@ -290,7 +290,7 @@ let fuse_method_arity (parent : fusable_function) : fusable_function =
290
290
(function (Texp_poly _ , _ , _ ) -> true | _ -> false )
291
291
exp_extra
292
292
->
293
- begin match transl_alloc_mode_r method_.alloc_mode with
293
+ begin match transl_alloc_mode method_.alloc_mode with
294
294
| Alloc_heap -> ()
295
295
| Alloc_local ->
296
296
(* If we support locally-allocated objects, we'll also have to
@@ -506,7 +506,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
506
506
Lconst (Const_block (0 , List. map extract_constant ll))
507
507
with Not_constant ->
508
508
Lprim (Pmakeblock (0 , Immutable , Some shape,
509
- transl_alloc_mode_r alloc_mode),
509
+ transl_alloc_mode alloc_mode),
510
510
ll,
511
511
(of_location ~scopes e.exp_loc))
512
512
end
@@ -552,7 +552,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
552
552
begin match constant with
553
553
| Some constant -> Lconst constant
554
554
| None ->
555
- let alloc_mode = transl_alloc_mode_r (Option. get alloc_mode) in
555
+ let alloc_mode = transl_alloc_mode (Option. get alloc_mode) in
556
556
let makeblock =
557
557
match cstr.cstr_shape with
558
558
| Constructor_uniform_value ->
@@ -578,7 +578,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
578
578
that out by checking that the sort list is empty *)
579
579
lam)
580
580
else
581
- let alloc_mode = transl_alloc_mode_r (Option. get alloc_mode) in
581
+ let alloc_mode = transl_alloc_mode (Option. get alloc_mode) in
582
582
let makeblock =
583
583
match cstr.cstr_shape with
584
584
| Constructor_uniform_value ->
@@ -613,13 +613,13 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
613
613
extract_constant lam]))
614
614
with Not_constant ->
615
615
Lprim (Pmakeblock (0 , Immutable , None ,
616
- transl_alloc_mode_r alloc_mode),
616
+ transl_alloc_mode alloc_mode),
617
617
[Lconst (const_int tag); lam],
618
618
of_location ~scopes e.exp_loc)
619
619
end
620
620
| Texp_record {fields; representation; extended_expression; alloc_mode} ->
621
621
transl_record ~scopes e.exp_loc e.exp_env
622
- (Option. map transl_alloc_mode_r alloc_mode)
622
+ (Option. map transl_alloc_mode alloc_mode)
623
623
fields representation extended_expression
624
624
| Texp_field (arg , id , lbl , float ) ->
625
625
let targ = transl_exp ~scopes Jkind.Sort. for_record arg in
@@ -640,7 +640,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
640
640
| Boxing (alloc_mode , _ ) -> alloc_mode
641
641
| Non_boxing _ -> assert false
642
642
in
643
- let mode = transl_alloc_mode_r alloc_mode in
643
+ let mode = transl_alloc_mode alloc_mode in
644
644
Lprim (Pfloatfield (lbl.lbl_pos, sem, mode), [targ],
645
645
of_location ~scopes e.exp_loc)
646
646
| Record_ufloat ->
@@ -667,7 +667,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
667
667
| Float_boxed ->
668
668
(match float with
669
669
| Boxing (mode , _ ) ->
670
- flat_read_float_boxed (transl_alloc_mode_r mode)
670
+ flat_read_float_boxed (transl_alloc_mode mode)
671
671
| Non_boxing _ ->
672
672
Misc. fatal_error
673
673
" expected typechecking to make [float] boxing mode\
@@ -729,7 +729,7 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
729
729
transl_exp ~scopes lbl_sort newval],
730
730
of_location ~scopes e.exp_loc)
731
731
| Texp_array (amut , element_sort , expr_list , alloc_mode ) ->
732
- let mode = transl_alloc_mode_r alloc_mode in
732
+ let mode = transl_alloc_mode alloc_mode in
733
733
let kind = array_kind e element_sort in
734
734
let ll =
735
735
transl_list ~scopes
@@ -1642,7 +1642,7 @@ and transl_function ~in_new_scope ~scopes e params body
1642
1642
~alloc_mode ~ret_mode :sreturn_mode ~ret_sort :sreturn_sort ~region :sregion
1643
1643
~zero_alloc =
1644
1644
let attrs = e.exp_attributes in
1645
- let mode = transl_alloc_mode_r alloc_mode in
1645
+ let mode = transl_alloc_mode alloc_mode in
1646
1646
let zero_alloc = Zero_alloc. get zero_alloc in
1647
1647
let assume_zero_alloc =
1648
1648
match zero_alloc with
@@ -2091,7 +2091,7 @@ and transl_match ~scopes ~arg_sort ~return_sort e arg pat_expr_list partial =
2091
2091
match arg, exn_cases with
2092
2092
| {exp_desc = Texp_tuple (argl , alloc_mode )} , [] ->
2093
2093
assert (static_handlers = [] );
2094
- let mode = transl_alloc_mode_r alloc_mode in
2094
+ let mode = transl_alloc_mode alloc_mode in
2095
2095
let argl =
2096
2096
List. map (fun (_ , a ) -> (a, Jkind.Sort. for_tuple_element)) argl
2097
2097
in
@@ -2110,7 +2110,7 @@ and transl_match ~scopes ~arg_sort ~return_sort e arg pat_expr_list partial =
2110
2110
argl
2111
2111
|> List. split
2112
2112
in
2113
- let mode = transl_alloc_mode_r alloc_mode in
2113
+ let mode = transl_alloc_mode alloc_mode in
2114
2114
static_catch (transl_list ~scopes argl) val_ids
2115
2115
(Matching. for_multiple_match ~scopes ~return_layout e.exp_loc
2116
2116
lvars mode val_cases partial)
0 commit comments