Repository activity
40458 results across all weeks
Extend .cmx/.cmo files with a data field for laws
Building on #7972, this PR adds support for storing the data of laws in .cmx/.cmo files. It additionally adds a small tool, ocamllaws, for retrieving the data and printing it. To decouple the plumbing of this change from the actual work (i.e., producing the law data), this PR introduces an abstract type Laws_data.t but stubs out the implementation.
Simon Spies (@spiessimon)FDO: Push counters through Cmm
Adds FDO counters for function entry, calls, and branches to Cmm, and pushes them through the translation from Flambda to Cmm.
yusumez-jsFDO: Push counters through Simplify
(NOTE: this PR description is outdated. I will update it soon.)
yusumez-jsFix rdpmc results allocated to rdx
As per title; the fix is to factor out the codes
Xavier Clerc (@xclerc)Float32.of_string mis-rounds hexadecimal subnormals
Hexadecimal subnormals come out one ulp away from the correctly rounded value, and for 0x1000001p-174 a positive nonzero literal becomes +0.0:
KC Sivaramakrishnan (@kayceesrk)Implement `-Hx`, `-open-cmi-x`, and friends
Motivation
Joe Kerrigan (@joe-kerrigan)Improve unboxed assignment errors
Currently, if we try to assign to a mutable field of an unboxed record, we get an error that blames the boxedness and not the mutability. This can be confusing, especially for new users of these features.
Zack Eisbach (@zackbach)Interleaved blocks
This PR changes the layout of blocks on the OxCaml heap, to allow blocks with arbitrary arrangements of scannable and non-scannable words.
Nick Barnes (@NickBarnes)JSIR: implement a linker for whole-program compilation
We combine a list of JSIR programs into a single JSIR program, so that we can perform whole-program optimisations using JSOO. We still keep the existing "separate compilation" mode as the default (which uses the JSOO linker instead), and add a -link-jsir flag for whole-program mode. See README on further details on how the linker works, but it is conceptuall…
Leo Lee (@smjleo)JSIR: improve debugging info support and documentation
In particular:
Leo Lee (@smjleo)JSIR: rename JSIR-related file extensions
As discussed internally:
Leo Lee (@smjleo)JSIR: switch to JSOO whole-program mode when using the JSIR linker
Previously, when using the JSIR whole-program linker, we still built the runtime and invoked the JSOO linker separately. This meant that the entire runtime was included, instead of just the ones that are needed by this program. This PR makes ocamlopt run JSOO in whole-program mode to fix this.
Leo Lee (@smjleo)List comprehension to max_int loops forever
A list comprehension whose last element is max_int does not terminate, and after the wrap it keeps yielding values from the bottom of the range:
KC Sivaramakrishnan (@kayceesrk)Local array corrupted after an async exception
A local array reads another function's values after an async exception is raised while a second handler is pending:
KC Sivaramakrishnan (@kayceesrk)Mutable record field update in "when" guard causes segfault
The following program causes a segfault (and causes no warnings other than 70, missing .mli):
Mark Shinwell (@mshinwell)No compile-time data for modules in recursive definitions
Makes recursive modules appear dynamic as translation can lose track of their compile-time halves.
Jakub Bachurski (@jbachurski)Refactor ARM64 architecture extensions
Adds the following
yusumez-jsRefactor `Typedtree.constant` to use the correct payload types
See the diff in typedtree.mli for the core of the change. The rest of the diff is a mechanical refactor.
James Rayman (@jra4)Remove duplicate inlined frames in debuginfo introduced by Flambda
Fix two cases (and leave on as a CR) where Flambda 2 Simplify adds the frames of the current inlining context to debuginfo a second time.
yusumez-jsReturn types can cause depth variables to escape
Example:
Vincent Laviron (@lthls)