Repository activity
40458 results across all weeks
Preserve phantom lets through instruction selection, CFG and Linear
This PR is part of the dwarf202607 series (24 PRs) adding end-to-end DWARF debugging improvements for code compiled with Flambda 2: phantom lets so the debugger can print optimised-out variables, correct attribution of parameters and variables to inlined frames, and DWARF call site information.
Mark Shinwell (@mshinwell)Prevent noalloc primitives from forcing closures to be alloc
Relax constraints on the Allocation mode axis introduced by primitives.
zhizhuoxinProvide layout poly static data via callbacks
This loads static data by requiring that the drivers pass a callback to Slambda evaluation. Most of them currently error but the opt compiler now loads the static data from the cmx file. To do this, the change also stores the static data in the cmx file, in a file_section (as it's large and we won't always want to load it).
Jack Rickard (@Skepfyr)Reaper solve plumbing
Adds validation for the inputs of the -reaper-solve entrypoint, and plumbs them through to a new function in flambda2.ml so that graph merging can be implemented. Includes a debug print and a test that the debug print fires correctly.
Miriam Vellacott (@mirivella)Rec info types can be invalid if the context is invalid
The "shouldn't currently be possible" assertion cas has been hit.
Basile Clément (@bclement-ocp)Record only direct dependencies in cmi import tables
The import table of a cmi now records only the units whose cmis were actually read during compilation, each with its own interface CRC, instead of the transitive closure of dependencies accumulated through a consistency table.
Zesen Qian (@riaqn)Reduce frametable size
Rework the native-code frame tables to save space. Six main steps:
Nick Barnes (@NickBarnes)Redundant modifier warning
Warn on redundant kind modifiers. Reuses the existing logic for modalities and adds a warning for non-modal modifiers.
dkalinichenko-jsRefactor: cleanup lowering of %atomic_load_idx and %atomic_set_idx
Addresses internal ticket 7719.
Joe Kerrigan (@joe-kerrigan)Remove runtime 5 markers
This is the sequel to #6218, removing the last few runtime 5 markers which were left in at that time to support third-party code which depended on them, as mentioned in that PR description. Extensive cleaning of that third-party code has occurred in the meantime, and will soon be complete. Removed:
Nick Barnes (@NickBarnes)Remove the Replay History
The replay history (in the context of match-in-match and continuation specialization), could be removed by instead doing the following:
Guillaume Bury (@Gbury)Rename -flambda2-no-simplify-stubs into -no-flambda2-simplify-stubs
For consistency with other flags.
Basile Clément (@bclement-ocp)Rename int ids without importing
When we apply a name abstraction that was imported from another compilation unit, we first import the name from the original compilation unit into the grand table for the current compilation unit, possibly affecting it a new identifier, then create a fresh name for it and record the mapping between the imported identifier and the fresh name in a Renaming.t.
Basile Clément (@bclement-ocp)Revert "Revert "simplify: Avoid loading cmx files for non-inlinable apply exprs" (#6206)"
This reverts commit 9cfe200.
Nathanaëlle Courant (@Ekdohibs)Rework the metrics pipeline behind a deployment environment
Replace the METRICS_REPO_TOKEN PAT (held inside the build matrix job) with a short-lived GitHub App token minted in a new push-metrics job gated on the 'metrics' deployment environment, scoped to only oxcaml/oxcaml-metrics with contents: write.
Jacob Van Buren (@jvanburen)Share record label-access typechecking code between projection and mutation
Merge solve_Pexp_field into type_label_access, so the same code is used for field projection, Pexp_setfield, and [%atomic.loc].
Ryan Tjoa (@rtjoa)Simplify rec info aliases
Rec info aliases (let depth x = x) are currently not simplified (see the output of the test in the first commit of this PR) because we convert them to an alias type, which we forget about in the provers.
Basile Clément (@bclement-ocp)Simplify, optimize, and fix the `lf_skiplist` implementation
See the individual commits for more details. Here is a brief summary:
Vesa Karvonen (@polytypic)Simplify_named: use simplified rec info in types
@lthls: 🤦
Basile Clément (@bclement-ocp)Specialization of continuation whose handler ends with an apply-cont
That would help match the expected spec given for match-in-match, notably because continuation aliases often prevent match-in-match from triggering
Guillaume Bury (@Gbury)