Repository activity
40458 results across all weeks
Add Datalog-based validators to various CFG passes.
Adds validators to Cfg_liveness, Cfg_dominators, Cfg_simplify.Eliminate_dead_code using Datalog. Their purpose is to both to verify the CFG stage of the compiler and check whether using Datalog for this purpose is a good idea.
hwasilewskijsAdd RUNPARAM to make test to allow OCAMLRUNPARAM to be set
This lets me run, for examnple, make test-one TEST=foo RUNPARAM=v=0x1000. Setting OCAMLRUNPARAM in the naive way sets it for all the various things run by the make (such as the compiler).
Nick Barnes (@NickBarnes)Add SSA intermediate representation between Cmm and CFG
TL;DR
ttebbi-janestreetAdd `const` qualifiers to `argv` in `caml_startup` functions
The OxCaml runtime never modifies the pointers argv points to, or any of the strings those pointers point to. It would be nice to express that constraint in the relevant function prototypes.
Nick Barnes (@NickBarnes)Add `module-type-impls` query
This PR adds the Merlin query module-type-impls that returns the modules that are required to implement the specified module type. This analysis will unlock broader functionality within Merlin, specifically for the Interface Strengthener, which annotates an .mli file with modes, modalities, and kinds.
Gavin Gray (@gavinleroy)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 flambda2 primitives for bit-counting ops (clz, ctz, popcnt, etc.)
Alternative to #6726 (I'll add the other primitives from that PR in a follow-up).
Basile Clément (@bclement-ocp)Add local abstract kind substitutions
This PR adds local kind substitutions in signatures:
julesjacobsAdd module type information to compiler artifacts (cms/merlin-index)
This PR adds module facts to build artifacts. The module facts help us answer module flow queries such as "which modules must implement a given module type".
Gavin Gray (@gavinleroy)Add more examples of bad `select` codegen
Demonstrates missed optimizations related using selects as if conditions and match scrutinees.
James Rayman (@jra4)Add slambda evaluation of value kinds
This was almost certainly just accidentally missed when this was first implemented and is necessary for array support.
Jack Rickard (@Skepfyr)Add validation of the cfg reachability pass
Adds a validator for dead-code elimination, which independently computes reachability using the internal Datalog engine (using Z3 as a fallback) and compares it. It introduces additional CFG fact infrastructure and the -cfg-eliminate-dead-code-validate flag.
hwasilewskijsAllow [@@or_null] GADTs
Summary
julesjacobsAllow all-`void` records
e.g. type t = { field : unit# } (note that unboxed type u = #{ field : unit# } already works).
Will Sturgeon (@wrsturgeon)Allow bodies of `if`s without `else`s to have type `unit#`
Done via type-directed disambiguation. type_if_no_else_branch is similar to type_statement so I probably will refactor the shared bits. Since Texp_ifthenelse doesn't have a parameter for a layout, the disambiguated unit# case is instead translated with ifnot = Some { exp_desc = Texp_unboxed_unit; .. } instead of ifnot = None.
James Rayman (@jra4)Allow interoperation with third-party signal handlers
The existing Sys.signal_behavior type does not encompass third-party signal handlers, installed by external code (such as another language's runtime). With this PR, such a handler is expressed as Signal_external e, with an abstract value e. The external handler can be re-installed in the usual way with Sys.signal.
Nick Barnes (@NickBarnes)Allow non-values in tuples
Draft
Zack Eisbach (@zackbach)Annotation hint
This PR creates a new leaf hint for annotations. If a mode can be explained by an annotation, the hint will now print the location of the annotation.
ainageorgesApply 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
ainageorges