File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
middle_end/flambda2/kinds Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,13 @@ module Mixed_block_shape = struct
215
215
{ value_prefix_size : int ;
216
216
flat_suffix : Flat_suffix_element .t array ;
217
217
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. *)
218
225
}
219
226
220
227
let value_prefix_size t = t.value_prefix_size
@@ -232,7 +239,6 @@ module Mixed_block_shape = struct
232
239
flat_suffix = flat_suffix2 ;
233
240
field_kinds = _
234
241
} =
235
- (* [field_kinds] is uniquely determined by [flat_suffix]. *)
236
242
Int. equal value_prefix_size1 value_prefix_size2
237
243
&& Int. equal (Array. length flat_suffix1) (Array. length flat_suffix2)
238
244
&& Array. for_all2 Flat_suffix_element. equal flat_suffix1 flat_suffix2
You can’t perform that action at this time.
0 commit comments