Skip to content

Commit 66fbd07

Browse files
authored
flambda-backend: Upgrade float32 support to beta (#2541)
* squash * fix
1 parent c0850be commit 66fbd07

File tree

14 files changed

+22
-22
lines changed

14 files changed

+22
-22
lines changed

otherlibs/alpha/.ocamlformat-enable

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
alpha.mli
22
alpha.ml
3-
float32.mli
4-
float32.ml

otherlibs/alpha/alpha.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
module Float32 = Float32
2-
module Float32_u = Float32_u

otherlibs/alpha/alpha.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
module Float32 = Float32
2-
module Float32_u = Float32_u

otherlibs/alpha/dune

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,9 @@
4141
(alpha.cmxs as alpha/alpha.cmxs)
4242
(alpha.cma as alpha/alpha.cma)
4343
(alpha.mli as alpha/alpha.mli)
44-
(float32.mli as alpha/float32.mli)
45-
(float32_u.mli as alpha/float32_u.mli)
4644
(.alpha.objs/byte/alpha.cmi as alpha/alpha.cmi)
4745
(.alpha.objs/byte/alpha.cmt as alpha/alpha.cmt)
4846
(.alpha.objs/byte/alpha.cmti as alpha/alpha.cmti)
49-
(.alpha.objs/native/alpha.cmx as alpha/alpha.cmx)
50-
(.alpha.objs/byte/float32.cmi as alpha/float32.cmi)
51-
(.alpha.objs/byte/float32.cmt as alpha/float32.cmt)
52-
(.alpha.objs/byte/float32.cmti as alpha/float32.cmti)
53-
(.alpha.objs/native/float32.cmx as alpha/float32.cmx)
54-
(.alpha.objs/byte/float32_u.cmi as alpha/float32_u.cmi)
55-
(.alpha.objs/byte/float32_u.cmt as alpha/float32_u.cmt)
56-
(.alpha.objs/byte/float32_u.cmti as alpha/float32_u.cmti)
57-
(.alpha.objs/native/float32_u.cmx as alpha/float32_u.cmx))
47+
(.alpha.objs/native/alpha.cmx as alpha/alpha.cmx))
5848
(section lib)
5949
(package ocaml))

otherlibs/beta/.ocamlformat-enable

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
beta.mli
22
beta.ml
3+
float32.mli
4+
float32.ml

otherlibs/beta/beta.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module Float32 = Float32
2+
module Float32_u = Float32_u

otherlibs/beta/beta.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module Float32 = Float32
2+
module Float32_u = Float32_u

otherlibs/beta/dune

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,19 @@
4141
(beta.cmxs as beta/beta.cmxs)
4242
(beta.cma as beta/beta.cma)
4343
(beta.mli as beta/beta.mli)
44+
(float32.mli as beta/float32.mli)
45+
(float32_u.mli as beta/float32_u.mli)
4446
(.beta.objs/byte/beta.cmi as beta/beta.cmi)
4547
(.beta.objs/byte/beta.cmt as beta/beta.cmt)
4648
(.beta.objs/byte/beta.cmti as beta/beta.cmti)
47-
(.beta.objs/native/beta.cmx as beta/beta.cmx))
49+
(.beta.objs/native/beta.cmx as beta/beta.cmx)
50+
(.beta.objs/byte/float32.cmi as beta/float32.cmi)
51+
(.beta.objs/byte/float32.cmt as beta/float32.cmt)
52+
(.beta.objs/byte/float32.cmti as beta/float32.cmti)
53+
(.beta.objs/native/float32.cmx as beta/float32.cmx)
54+
(.beta.objs/byte/float32_u.cmi as beta/float32_u.cmi)
55+
(.beta.objs/byte/float32_u.cmt as beta/float32_u.cmt)
56+
(.beta.objs/byte/float32_u.cmti as beta/float32_u.cmti)
57+
(.beta.objs/native/float32_u.cmx as beta/float32_u.cmx))
4858
(section lib)
4959
(package ocaml))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

testsuite/tests/typing-layouts-float32/alloc.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
(* TEST
22
flambda2;
33
{
4-
include alpha;
5-
flags = "-extension-universe alpha";
4+
include beta;
5+
flags = "-extension-universe beta";
66
native;
77
}
88
*)
@@ -15,7 +15,7 @@
1515
floats. *)
1616

1717
module Float32_u = struct
18-
include Alpha.Float32_u
18+
include Beta.Float32_u
1919

2020
let ( + ) = add
2121
let ( - ) = sub

utils/language_extension.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module Exist_pair = struct
7979
| Pair (Layouts, m) -> m
8080
| Pair (SIMD, ()) -> Stable
8181
| Pair (Labeled_tuples, ()) -> Stable
82-
| Pair (Small_numbers, ()) -> Alpha
82+
| Pair (Small_numbers, ()) -> Beta
8383

8484
let is_erasable : t -> bool = function Pair (ext, _) -> is_erasable ext
8585

0 commit comments

Comments
 (0)