Skip to content

Commit 75b14b4

Browse files
committed
make fmt
1 parent 58ad74c commit 75b14b4

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

middle_end/flambda2/from_lambda/closure_conversion.ml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,8 +2014,8 @@ let close_let_rec acc env ~function_declarations
20142014
named ~body
20152015

20162016
let wrap_partial_application acc env apply_continuation (apply : IR.apply)
2017-
approx ~provided ~provided_arity ~missing_arity ~arity ~num_trailing_local_params
2018-
~contains_no_escaping_local_allocs =
2017+
approx ~provided ~provided_arity ~missing_arity ~arity
2018+
~num_trailing_local_params ~contains_no_escaping_local_allocs =
20192019
(* In case of partial application, creates a wrapping function from scratch to
20202020
allow inlining and lifting *)
20212021
let wrapper_id = Ident.create_local ("partial_" ^ Ident.name apply.func) in
@@ -2292,7 +2292,11 @@ let close_apply acc env (apply : IR.apply) : Expr_with_acc.t =
22922292
Flambda_arity.partially_apply non_unarized_arity
22932293
~num_non_unarized_params_provided:args_l
22942294
in
2295-
Partial_app { provided = args; provided_arity = apply.args_arity; missing_arity }
2295+
Partial_app
2296+
{ provided = args;
2297+
provided_arity = apply.args_arity;
2298+
missing_arity
2299+
}
22962300
else
22972301
let full, remaining = cut (List.length arity) args in
22982302
let remaining_arity =
@@ -2322,8 +2326,8 @@ let close_apply acc env (apply : IR.apply) : Expr_with_acc.t =
23222326
Inlining_helpers.(
23232327
inlined_attribute_on_partial_application_msg Inlined))
23242328
| Never_inlined | Hint_inlined | Default_inlined -> ());
2325-
wrap_partial_application acc env apply.continuation apply approx ~provided ~provided_arity
2326-
~missing_arity ~arity ~num_trailing_local_params
2329+
wrap_partial_application acc env apply.continuation apply approx ~provided
2330+
~provided_arity ~missing_arity ~arity ~num_trailing_local_params
23272331
~contains_no_escaping_local_allocs
23282332
| Over_app { full; provided_arity; remaining; remaining_arity } ->
23292333
let full_args_call apply_continuation ~region acc =

middle_end/flambda2/from_lambda/lambda_to_flambda.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,8 +1381,8 @@ let rec cps acc env ccenv (lam : L.lambda) (k : cps_continuation)
13811381
in
13821382
let dbg = Debuginfo.from_location loc in
13831383
CC.close_raise acc ccenv ~raise_kind
1384-
~arg:(List.hd (List.hd args)) ~dbg
1385-
exn_continuation)
1384+
~arg:(List.hd (List.hd args))
1385+
~dbg exn_continuation)
13861386
k_exn
13871387
| [] | _ :: _ ->
13881388
Misc.fatal_errorf "Wrong number of arguments for Lraise: %a"

middle_end/flambda2/from_lambda/lambda_to_flambda_primitives.ml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -619,17 +619,16 @@ let bbswap bi si mode arg ~current_region : H.expr_primitive =
619619
Prim (Unary (Unbox_number bi, arg)) )) )
620620

621621
let opaque layout arg middle_end_only : H.expr_primitive list =
622-
let kinds =
623-
Flambda_arity.unarize (Flambda_arity.from_lambda_list [layout])
624-
in
622+
let kinds = Flambda_arity.unarize (Flambda_arity.from_lambda_list [layout]) in
625623
if List.compare_lengths kinds arg <> 0
626624
then
627625
Misc.fatal_error
628-
"Popaque/Pobj_magic layout does not have the same length as unarized argument";
626+
"Popaque/Pobj_magic layout does not have the same length as unarized \
627+
argument";
629628
List.map2
630629
(fun arg_component kind : H.expr_primitive ->
631-
let kind = K.With_subkind.kind kind in
632-
Unary (Opaque_identity { middle_end_only; kind }, arg_component))
630+
let kind = K.With_subkind.kind kind in
631+
Unary (Opaque_identity { middle_end_only; kind }, arg_component))
633632
arg kinds
634633

635634
(* Primitive conversion *)
@@ -718,10 +717,8 @@ let convert_lprim ~big_endian (prim : L.primitive) (args : Simple.t list list)
718717
( Make_array (Naked_floats, mutability, mode),
719718
List.map unbox_float args ),
720719
Variadic (Make_array (Values, mutability, mode), args) ) ]))
721-
| Popaque layout, [arg] ->
722-
opaque layout arg false
723-
| Pobj_magic layout, [arg] ->
724-
opaque layout arg true
720+
| Popaque layout, [arg] -> opaque layout arg false
721+
| Pobj_magic layout, [arg] -> opaque layout arg true
725722
| Pduprecord (repr, num_fields), [[arg]] ->
726723
let kind : P.Duplicate_block_kind.t =
727724
match repr with

0 commit comments

Comments
 (0)