Skip to content

Commit 7d08e0e

Browse files
mshinwellpoechsel
authored andcommitted
flambda-backend: To upstream: use flambda_o3 attribute in stdlib
1 parent 403b82e commit 7d08e0e

66 files changed

Lines changed: 171 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

stdlib/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ CAMLC=$(CAMLRUN) $(COMPILER)
2424
COMPFLAGS=-strict-sequence -absname -w +a-4-9-41-42-44-45-48-66 \
2525
-g -warn-error A -bin-annot -nostdlib -principal \
2626
-safe-string -strict-formats -nopervasives -no-alias-deps
27-
ifeq "$(FLAMBDA)" "true"
28-
OPTCOMPFLAGS += -O3
29-
endif
3027
OPTCOMPILER=$(ROOTDIR)/ocamlopt$(EXE)
3128
CAMLOPT=$(CAMLRUN) $(OPTCOMPILER)
3229
CAMLDEP=$(BOOT_OCAMLC) -depend

stdlib/arg.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
type key = string
1921
type doc = string
2022
type usage_msg = string

stdlib/array.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* An alias for the type of arrays. *)
1921
type 'a t = 'a array
2022

stdlib/arrayLabels.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* Module [ArrayLabels]: labelled Array module *)
1921

2022
[@@@ocaml.nolabels]

stdlib/bigarray.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* Module [Bigarray]: large, multi-dimensional, numerical arrays *)
1921

2022
(* These types in must be kept in sync with the tables in

stdlib/bool.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
type t = bool = false | true
1921

2022
external not : bool -> bool = "%boolnot"

stdlib/buffer.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* Extensible buffers *)
1921

2022
[@@@ocaml.inline 3]

stdlib/bytes.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* Byte sequence operations *)
1921

2022
(* WARNING: Some functions in this file are duplicated in string.ml for

stdlib/bytesLabels.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* Module [BytesLabels]: labelled Bytes module *)
1921

2022
[@@@ocaml.nolabels]

stdlib/callback.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
open! Stdlib
1717

18+
[@@@ocaml.flambda_o3]
19+
1820
(* Registering OCaml values with the C runtime for later callbacks *)
1921

2022
external register_named_value : string -> Obj.t -> unit

0 commit comments

Comments
 (0)