Repository activity
40458 results across all weeks
Add `Unmentionable` visibility for transitive deps of `-functorize` bundles
A -functorize bundle has to include the transitive dependencies of its inputs, since other bundled modules alias into them, but users should not be able to name them. Until now they were bound under a DEP__ prefix as a deterrent.
Zesen Qian (@riaqn)Add `[@@@static]` for `.mli`-less `.ml`s
Add [@@@static], an attribute to mark an .mli-less compilation unit as static rather than dynamic.
Ryan Tjoa (@rtjoa)Add `as deref_ x` patterns
P as deref_ x allows dereferencing while continuing to match against P:
Benjamin Peters (@bn-peters)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 `returns : bool` to `Capply`, but don't set it yet
This mirrors Cextcall. This is useful for a subsequent PR that implements machtype checking, as some expressions generated by the reaper never return and aren't given a compatible machtype.
James Rayman (@jra4)Add a flag to control floating-point expression contraction
Rewrite of #7813.
Leo Lee (@smjleo)Add a machtype field to `Cmm.symbol`
Currently, the machtype is always typ_int, but a subsequent PR will change some instances to new machtypes.
James Rayman (@jra4)Add a register-map printer
As per title: simply adds a utility
Xavier Clerc (@xclerc)Add an operation sinking pass to SSA (Partial Dead Code Elimination)
This pull request add a an optimization pass to
Xavier Clerc (@xclerc)Add an option to dump the simplified term in the middle of Simplify
This is useful to debug what happens during simplify. The printing function for Simplified_exprs is voluntarily less "smart" than the flambda term printers, because when printing simplified exprs is needed, the exact order of rebuild is meaningful and it's easier to understand with the "dumb" printing implemented here.
Guillaume Bury (@Gbury)Add check for symbol defintion&usage after Simplify
This adds an (optional) check after simplify, whose goal is to ensure that every use of a symbol is dominated by its definition. This was particularly useful when developping #7560 (which includes this check), and additionally, it accurately detects recent bug reports such as #7763 and #7977 , and triggers a fatal error during compilation rather than rely o…
Guillaume Bury (@Gbury)Add codegen tests for branching on a boolean returned by a call
Adds four x86-64 expect_asm cases to instruction_selection.ml for if on a boolean returned by a call, recording the current output (sar; test; je), so that #8201's diff shows only its effect.
Mark Shinwell (@mshinwell)Add codegen tests for negated booleans
Stacked on #8201; #8212 goes on top.
Mark Shinwell (@mshinwell)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 empty-loop deletion and bounds-check elimination to the SSA pipeline, proved in Rocq
Two passes over finished SSA graphs, both off by default, take their decisions from OCaml extracted from a Rocq development that proves those decisions sound.
Mark Shinwell (@mshinwell)Add off-heap pointer and static block machtypes
This splits off some dubious use-cases of Int. See the diff in cmm.ml/mli for specifics. In short, 3 new machtypes are added:
James Rayman (@jra4)Add parsing support for provable laws
This PR adds parsing support for law_ (without a subsequent question mark). We reserve this syntax for writing laws that are meant to be proven rather than tested.
Simon Spies (@spiessimon)Add runtime-events counters for per-slice sweep and mark work
Necessary for doing GC performance measurements directly from the runtime-events stream (rather than the nasty hybrid of runtime events and GC log messages currently used by the gcrate test), which will also allow us to measure it for any program.
Nick Barnes (@NickBarnes)Add support for rematerialization
The most important part is the RewriteAsRematerialize
Xavier Clerc (@xclerc)Allow Boolean_not on naked immediates
Boolean_not now takes a representation, Tagged_bool or Naked_bool, so that a boolean can be negated without first being tagged. Nothing generates the naked form yet; #8197 will use it.
Mark Shinwell (@mshinwell)