Skip to content

Commit 3a95f5e

Browse files
committed
Merge flambda-backend changes
2 parents efe80c9 + 1c6eee1 commit 3a95f5e

File tree

417 files changed

+15902
-7180
lines changed

Some content is hidden

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

417 files changed

+15902
-7180
lines changed

.depend

Lines changed: 93 additions & 25 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ _build
127127
/otherlibs/*/.dep
128128
/otherlibs/dynlink/extract_crc
129129
/otherlibs/dynlink/dynlink_platform_intf.mli
130-
/otherlibs/dynlink/byte/dynlink.mli
131-
/otherlibs/dynlink/native/dynlink.mli
132130
/otherlibs/dynlink/dynlink_compilerlibs/Makefile
133131
/otherlibs/dynlink/dynlink_compilerlibs/*.ml
134132
/otherlibs/dynlink/dynlink_compilerlibs/*.mli
@@ -266,3 +264,8 @@ _build
266264
/yacc/ocamlyacc
267265
/yacc/version.h
268266
/yacc/.gdb_history
267+
268+
/otherlibs/dynlink/natdynlinkops
269+
/otherlibs/dynlink/natdynlinkops1
270+
/otherlibs/dynlink/natdynlinkops2
271+

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ natruntop:
636636

637637
# Native dynlink
638638

639-
otherlibs/dynlink/dynlink.cmxa: otherlibs/dynlink/native/dynlink.ml
639+
otherlibs/dynlink/dynlink.cmxa: otherlibs/dynlink/dynlink.ml
640640
$(MAKE) -C otherlibs/dynlink allopt
641641

642642
# The lexer

Makefile.config.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,20 @@ WITH_FPIC=@fpic@
231231
TARGET=@target@
232232
HOST=@host@
233233
FLAMBDA=@flambda@
234+
FLAMBDA2=@flambda2@
234235
WITH_FLAMBDA_INVARIANTS=@flambda_invariants@
236+
WITH_CMM_INVARIANTS=@cmm_invariants@
235237
FORCE_SAFE_STRING=@force_safe_string@
236238
DEFAULT_SAFE_STRING=@default_safe_string@
237239
WINDOWS_UNICODE=@windows_unicode@
238240
AFL_INSTRUMENT=@afl@
239241
FLAT_FLOAT_ARRAY=@flat_float_array@
240242
FUNCTION_SECTIONS=@function_sections@
243+
PROBES=@probes@
241244
AWK=@AWK@
242245
STDLIB_MANPAGES=@stdlib_manpages@
243246
NAKED_POINTERS=@naked_pointers@
247+
INTEL_JCC_BUG_CFLAGS=@intel_jcc_bug_cflags@
244248

245249
### Native command to build ocamlrun.exe
246250

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
4.12.1+dev0-2021-02-24
1+
4.12.0
22

33
# The version string is the first line of this file.
44
# It must be in the format described in stdlib/sys.mli

aclocal.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ m4_include([build-aux/lt~obsolete.m4])
3030
# Macros from the autoconf macro archive
3131
m4_include([build-aux/ax_func_which_gethostbyname_r.m4])
3232
m4_include([build-aux/ax_pthread.m4])
33+
m4_include([build-aux/ax_check_compile_flag.m4])
3334

3435
# The following macro figures out which C compiler is used.
3536
# It does so by checking for compiler-specific predefined macros.

asmcomp/CSEgen.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ method class_of_operation op =
223223
| Imove | Ispill | Ireload -> assert false (* treated specially *)
224224
| Iconst_int _ | Iconst_float _ | Iconst_symbol _ -> Op_pure
225225
| Icall_ind | Icall_imm _ | Itailcall_ind | Itailcall_imm _
226-
| Iextcall _ -> assert false (* treated specially *)
226+
| Iextcall _ | Iprobe _ -> assert false (* treated specially *)
227227
| Istackoffset _ -> Op_other
228228
| Iload(_,_) -> Op_load
229229
| Istore(_,_,asg) -> Op_store asg
@@ -236,6 +236,7 @@ method class_of_operation op =
236236
| Ifloatofint | Iintoffloat -> Op_pure
237237
| Ispecific _ -> Op_other
238238
| Iname_for_debugger _ -> Op_pure
239+
| Iprobe_is_enabled _ -> Op_other
239240

240241
(* Operations that are so cheap that it isn't worth factoring them. *)
241242

@@ -263,7 +264,7 @@ method private cse n i =
263264
as to the argument reg. *)
264265
let n1 = set_move n i.arg.(0) i.res.(0) in
265266
{i with next = self#cse n1 i.next}
266-
| Iop (Icall_ind | Icall_imm _ | Iextcall _) ->
267+
| Iop (Icall_ind | Icall_imm _ | Iextcall _ | Iprobe _) ->
267268
(* For function calls, we should at least forget:
268269
- equations involving memory loads, since the callee can
269270
perform arbitrary memory stores;

0 commit comments

Comments
 (0)