Skip to content

Commit f90210e

Browse files
authored
Merge 5.2.0minus 16 retag (#174)
* Import ocaml sources for oxcaml/oxcaml@31a75865c15 * Automatic merges * Remove removed flags
1 parent a4a79a1 commit f90210e

File tree

9 files changed

+20
-30
lines changed

9 files changed

+20
-30
lines changed

src/kernel/mconfig.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,6 @@ let ocaml_ignored_flags =
582582
"-fno-bmi2";
583583
"-fbmi";
584584
"-fno-bmi";
585-
"-flzcnt";
586-
"-fno-lzcnt";
587585
"-fprefetchwt1";
588586
"-fno-prefetchwt1";
589587
"-fprefetchw";

src/ocaml/typing/predef.ml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -620,16 +620,6 @@ let add_simd_stable_extension_types add_type env =
620620
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_128bit_vectors
621621
|> add_type ident_float64x2 ~jkind:Jkind.Const.Builtin.immutable_data
622622
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_128bit_vectors
623-
624-
(* CR-soon mslater:
625-
Remaining work:
626-
- Correct ASAN checks for 32/64 byte memory chunks
627-
- Correct TSAN save/restore SIMD registers
628-
- Align Vec256 stack slots on the OCaml stack
629-
*)
630-
let add_simd_beta_extension_types add_type env =
631-
let _, add_type = mk_add_type add_type in
632-
env
633623
|> add_type ident_int8x32 ~jkind:Jkind.Const.Builtin.immutable_data
634624
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_256bit_vectors
635625
|> add_type ident_int16x16 ~jkind:Jkind.Const.Builtin.immutable_data
@@ -643,6 +633,8 @@ let add_simd_beta_extension_types add_type env =
643633
|> add_type ident_float64x4 ~jkind:Jkind.Const.Builtin.immutable_data
644634
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_256bit_vectors
645635

636+
let add_simd_beta_extension_types _add_type env = env
637+
646638
let add_simd_alpha_extension_types add_type env =
647639
let _, add_type = mk_add_type add_type in
648640
env

src/ocaml/typing/typemod.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,11 @@ and transl_signature ?(keep_warnings = false) env sig_acc {psg_items; psg_modali
20082008
not @@ Builtin_attributes.has_attribute "no_recursive_modalities"
20092009
sincl.pincl_attributes
20102010
in
2011-
let sg = apply_modalities_signature ~recursive env modalities sg in
2011+
let sg =
2012+
match Mode.Modality.Value.Const.is_id modalities with
2013+
| true -> sg
2014+
| false -> apply_modalities_signature ~recursive env modalities sg
2015+
in
20122016
(* Assume the structure is legacy, for backward compatibility *)
20132017
let sg, newenv = Env.enter_signature ~scope sg ~mode:Value.legacy env in
20142018
Signature_group.iter

src/ocaml/typing/typeopt.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ let[@inline always] rec layout_of_const_sort_generic ~value_kind ~error
947947
Language_extension.(is_at_least SIMD Stable) ->
948948
Lambda.Punboxed_vector Unboxed_vec128
949949
| Base Vec256 when Language_extension.(is_at_least Layouts Stable) &&
950-
Language_extension.(is_at_least SIMD Beta) ->
950+
Language_extension.(is_at_least SIMD Stable) ->
951951
Lambda.Punboxed_vector Unboxed_vec256
952952
| Base Vec512 when Language_extension.(is_at_least Layouts Stable) &&
953953
Language_extension.(is_at_least SIMD Alpha) ->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
00e9f22e7c52c951992ba327e68cdba4ea9c0b30
1+
31a75865c155563d3d9f84cd4ec5bcaaffa2c81d

upstream/ocaml_flambda/typing/predef.ml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -615,16 +615,6 @@ let add_simd_stable_extension_types add_type env =
615615
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_128bit_vectors
616616
|> add_type ident_float64x2 ~jkind:Jkind.Const.Builtin.immutable_data
617617
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_128bit_vectors
618-
619-
(* CR-soon mslater:
620-
Remaining work:
621-
- Correct ASAN checks for 32/64 byte memory chunks
622-
- Correct TSAN save/restore SIMD registers
623-
- Align Vec256 stack slots on the OCaml stack
624-
*)
625-
let add_simd_beta_extension_types add_type env =
626-
let _, add_type = mk_add_type add_type in
627-
env
628618
|> add_type ident_int8x32 ~jkind:Jkind.Const.Builtin.immutable_data
629619
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_256bit_vectors
630620
|> add_type ident_int16x16 ~jkind:Jkind.Const.Builtin.immutable_data
@@ -638,6 +628,8 @@ let add_simd_beta_extension_types add_type env =
638628
|> add_type ident_float64x4 ~jkind:Jkind.Const.Builtin.immutable_data
639629
~unboxed_jkind:Jkind.Const.Builtin.kind_of_unboxed_256bit_vectors
640630

631+
let add_simd_beta_extension_types _add_type env = env
632+
641633
let add_simd_alpha_extension_types add_type env =
642634
let _, add_type = mk_add_type add_type in
643635
env

upstream/ocaml_flambda/typing/typemod.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,11 @@ and transl_signature env {psg_items; psg_modalities; psg_loc} =
19921992
not @@ Builtin_attributes.has_attribute "no_recursive_modalities"
19931993
sincl.pincl_attributes
19941994
in
1995-
let sg = apply_modalities_signature ~recursive env modalities sg in
1995+
let sg =
1996+
match Mode.Modality.Value.Const.is_id modalities with
1997+
| true -> sg
1998+
| false -> apply_modalities_signature ~recursive env modalities sg
1999+
in
19962000
(* Assume the structure is legacy, for backward compatibility *)
19972001
let sg, newenv = Env.enter_signature ~scope sg ~mode:Value.legacy env in
19982002
Signature_group.iter

upstream/ocaml_flambda/typing/typeopt.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ let[@inline always] rec layout_of_const_sort_generic ~value_kind ~error
995995
Language_extension.(is_at_least SIMD Stable) ->
996996
Lambda.Punboxed_vector Unboxed_vec128
997997
| Base Vec256 when Language_extension.(is_at_least Layouts Stable) &&
998-
Language_extension.(is_at_least SIMD Beta) ->
998+
Language_extension.(is_at_least SIMD Stable) ->
999999
Lambda.Punboxed_vector Unboxed_vec256
10001000
| Base Vec512 when Language_extension.(is_at_least Layouts Stable) &&
10011001
Language_extension.(is_at_least SIMD Alpha) ->

upstream/ocaml_flambda/utils/config.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ val has_pclmul : bool
328328
val has_popcnt : bool
329329
(* Whether the compiler was configured on a machine with POPCNT *)
330330

331-
val has_lzcnt : bool
332-
(* Whether the compiler was configured on a machine with LZCNT *)
333-
334331
val has_sse3 : bool
335332
(* Whether the compiler was configured on a machine with SSE3 *)
336333

@@ -354,3 +351,6 @@ val has_avx : bool
354351

355352
val has_avx2 : bool
356353
(* Whether the compiler was configured on a machine with AVX2 *)
354+
355+
val oxcaml_dwarf : bool
356+
(* Whether OxCaml DWARF is used by default *)

0 commit comments

Comments
 (0)