Repository activity
40458 results across all weeks
Add acquire/release atomic load and store primitives
Add %atomic_load_acquire and %atomic_store_release (with _field and _loc variants) alongside the existing sequentially consistent atomics.
Aspen Smith (@glittershark)Add atomic ext_ptr and remove user atomics caml_domain_alone optimization
This PR implements the %unsafe_atomic_*_ext_ptr family of primitives, intended
Joe Kerrigan (@joe-kerrigan)Add continuation specialization budget
This will provide an escape hatch for situations where enabling match-in-match makes the compilation time explode.
Guillaume Bury (@Gbury)Add dead store elimination to the CFG backend (`-cfg-dse`)
Stacked on #6832 (CSE across join points), itself stacked on #7123 (store-to-load forwarding).
Xavier Clerc (@xclerc)Add modality printing relative to explicit defaults
Adds Typemode.least_modalities_with_default and Out_type.tree_of_modalities_with_default to Merlin's vendored typing sources so callers can print the modalities of an item relative to a caller-supplied default modality rather than the mutability-implied one. Used by the strength analysis (#6812).
Gavin Gray (@gavinleroy)Add new -thin-library option
Libraries built with -thin-library have much smaller .a and .cma files by referencing rather than including the corresponding .o and .cmo files. The .o and .cmo files must still be available when the final link occurs.
Stephen Dolan (@stedolan)Add store-to-load forwarding to CFG CSE
After a plain store, record an equation in the mutable-load
Xavier Clerc (@xclerc)Add structured diagnostic natural-language generation
Summary
Gavin Gray (@gavinleroy)Add the (Merlin) Typing-Recovery mechanism directly to the type checker
This PR implements the Typing Recovery mechanism, recently merged into ocaml/ocaml (and superseed #6187), in an appropriate manner. To provide some context, the goal of integrating the recovery mechanism is to reduce the differences between the type checker provided by Merlin and the compiler’s type checker, thereby facilitating the process of upstreaming …
Xavier Van de Woestyne (@xvw)Add the structured diagnostic model
Summary
Gavin Gray (@gavinleroy)Allocation Mode Axis
Add Allocation mode axis to analyze whether a function allocates on heap.
zhizhuoxinAllow Flambda 2 switches on any standard integer kind
Based on #6963. This is part of work to allow the pattern-matching compiler to produce jump tables when unboxed integral types are involved. (The remaining part after this PR will be a change to Lambda.)
Mark Shinwell (@mshinwell)Allow all-`void` records
e.g. type t = { field : unit# } (note that unboxed type u = #{ field : unit# } already works).
Will Sturgeon (@wrsturgeon)Allow skipping intermediate return modes in moregen
Adds a ret_modes flag to Ctype.moregeneral so a caller can constrain only the final arrow of the subject's return spine, and exposes submode_with_cross in the interface. Merlin's strength analysis (#6812) uses these to compute the strongest signature for a function without over-constraining intermediate arrows.
Gavin Gray (@gavinleroy)Apply modality to the base of the curry mode in the parser and printer
When parsing 'a @ m1 -> 'b -> 'c @@ m2 in a signature, the implicit curry mode was constructed as the join between m1 and legacy, ignoring the value's modality m2. For
ainageorgesAssorted fixes to the deserialisation of .cmr files
When applying renaming to Let_cont_recs in rev_exprs, I missed out renaming the continuations inside.
Miriam Vellacott (@mirivella)Attach loclists_base and rnglists_base when offset arrays are in use
When -gdwarf-offsets offset arrays are in use, DW_FORM_loclistx and DW_FORM_rnglistx indices are resolved via the offset arrays whose positions the DW_AT_loclists_base and DW_AT_rnglists_base attributes give. These attributes were never attached to the compilation unit DIE, so the indices could not have been resolved. This attaches them. The flag currently h…
Mark Shinwell (@mshinwell)Backport (#11996) "Emancipate dynlink from compilerlibs"
This backports upstream's removal of dynlink_compilerlibs from 5.3.0. The underlying principle here was to get to Cmo_format and Cmxs_format to be dependency-free, as this had the effect of pushing things back into the linker and making Dynlink itself simpler. Upstream achieved this completely (file_formats/cmo_format.mli and file_formats/cmxs_format.mli hav…
David Allsopp (@dra27-js)Backport code metadata to solve
This PR backports the recent changes to enable computing the code changes at solve time #7113.
Simon Spies (@spiessimon)Backport slot offset changes
This PR backports the slot offset changes from #6992 to calculate the slot offsets all at solve time as part of -reaper-solve.
Simon Spies (@spiessimon)