Skip to content

Commit 4f1d92b

Browse files
committed
Comment
1 parent 9e1f955 commit 4f1d92b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

middle_end/flambda2/kinds/flambda_kind.ml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,13 @@ module Mixed_block_shape = struct
215215
{ value_prefix_size : int;
216216
flat_suffix : Flat_suffix_element.t array;
217217
field_kinds : kind array
218+
(* [field_kinds] is uniquely determined by [flat_suffix]. The kinds
219+
are the thing used during most of Flambda 2, but the [flat_suffix]
220+
is required for compilation to Cmm. We could also use a kind with
221+
subkind, but that would require significant restructuring in this
222+
file, and would provide an overly-permissive type in the face of
223+
the various restrictions as to what suffix elements are
224+
permitted. *)
218225
}
219226

220227
let value_prefix_size t = t.value_prefix_size
@@ -232,7 +239,6 @@ module Mixed_block_shape = struct
232239
flat_suffix = flat_suffix2;
233240
field_kinds = _
234241
} =
235-
(* [field_kinds] is uniquely determined by [flat_suffix]. *)
236242
Int.equal value_prefix_size1 value_prefix_size2
237243
&& Int.equal (Array.length flat_suffix1) (Array.length flat_suffix2)
238244
&& Array.for_all2 Flat_suffix_element.equal flat_suffix1 flat_suffix2

0 commit comments

Comments
 (0)