Repository activity
40458 results across all weeks
JSIR: support Smallints
Add support for Smallints for JSIR translation. We use the same representation as in bytecode and native code, where they are stored sign-extended.
Leo Lee (@smjleo)JSIR: support effects
This PR enables support for effects with JSIR, and re-enables the tests in effect-syntax, effects and effects-safe for JSIR.
Leo Lee (@smjleo)JSIR: thread unyielding information through Flambda
JSOO uses this information to emit direct calls instead of CPS calls when in double translation mode. This threading exists in the bytecode path but not in Flambda.
Leo Lee (@smjleo)JSOO: sign-extend 8-bit reads through string-like block indices
On JSOO/WASM, 8-bit unboxed values like char# and int8# are sign-extended. However, reads through string, bytes and bigstring block indices used unsigned byte reads, which return a zero-extended char. Reading a byte 0xff therefore produced 255 instead of -1, so the result did not compare equal to other 8-bit values with the same bits, and reinterpreting it a…
ericlovesmath (@ericlovesmath)Key cmx caches by Compilation_unit.t
Based on main; #7505 is based on this PR.
Zesen Qian (@riaqn)Layout poly - merge fracture and eval
This merges the slambda fracturing and eval passes into one slambda pass, which means there's no longer a slambda IR either. This is mostly motivated by simplicity, trying to accurately model evaluation order etc in slambda was hard and writing it as one pass is arguably easier than having it as two.
Jack Rickard (@Skepfyr)Liam backport merlin 2141
This PR downstreams ocaml/merlin#2141. This PR fixes a rather nefarious Merlin caching issue. The bug in question can cause Merlin to fail to load a cmi from disk after previously raising an "inconsistent assumptions" error, which can happen if Merlin is queried while a build is running.
Liam Stevenson (@liam923)Machtype checking
Adds another pass during cmm_invariants that traverses Cmm expressions and makes sure the machtypes of inputs and outputs of each operation are consistent with eachother. For now, this machtype-checking pass is toggled with a separate flag (-dcmm-(no-)check-machtypes, default enabled), but it can be folded into -dcmm-invariants when we consider the machtype …
James Rayman (@jra4)Make Branch_relaxation.Make.fixup_branches.fixup tail-recursive
This function should be tail-recursive (and is, perhaps, causing a Stack overflow when compiling some large functions).
Nick Barnes (@NickBarnes)Make Format and Dynarray internals cross statefulness and visibility
dkalinichenko-jsMake externality a "secret" mode axis
Instead of hardcoding externality as a special-cased non-modal axis, make it a regular modal axis. Hide it and prevent users from writing annotations for externality modes and modalities, allowing them in mode-crossing only.
dkalinichenko-jsMake mutable unboxed versions invariant and cross fewer axes
Draft
Zack Eisbach (@zackbach)Make ocaml-index deterministic
At the moment, ocaml-index write a random id into an index file. This is so that other index files that point at it can store the expected id, and thus determine if the pointed-at index file has changed since the current index file has been written. While this is useful knowledge, it causes builds to not be deterministic. This PR replaces the random id with …
Liam Stevenson (@liam923)Make stateless the default modality of stdlib interfaces
dkalinichenko-jsMake the local iarray functions zero-alloc compatible
Wraps local IArray functions that are clearly meant to be local with [@zero_alloc assume] much like #6147 does
ericlovesmath (@ericlovesmath)Mark `external/merlin/upstream/ocaml_flambda` as linguist-generated
These files are generated by the external/merlin/scripts/import-ocaml-source.sh script, and the Merlin CI check verifies that they're in line, so there's no need to review them. Marking them as linguist-generated will make GitHub collapse them by default when reviewing. Unfortunately, there doesn't seem to be a stronger way to tell GitHub to ignore review on…
Liam Stevenson (@liam923)Merlin: restore cmi identity check in typer cache invalidation
Stacked on #7687.
Zesen Qian (@riaqn)Mode crossing for addresses
Adds the following modal kinds for addr and addr_imm:
Benjamin Peters (@bn-peters)More complete type inference with `eval` and concrete types
Motivation
Jakub Bachurski (@jbachurski)Morphism meets and joins
The solver keys vlower/vupper arrows by (variable, morphism), so constraints between the same two variables with different morphisms are separate edges. Since f u <= v and g u <= v together mean (f join g) u <= v, and dually with meet for upper arrows, one edge per pair suffices if morphisms can be joined and met. This PR adds join_morph/meet_morph to Lattic…
ainageorges