Repository activity
40458 results across all weeks
Update dunelike tests to match how dune builds parameterised libraries
Dune no longer generates the No_direct_access_to_* shadowing bindings (aliasing mangled unit names to the missing No_such_module) in internal interfaces (the generated Basic__, Fancy__, etc. modules that alias each library's mangled units); direct access to build-unit-internal modules is instead prevented at the flag level. This updates the templates/dunelik…
Zesen Qian (@riaqn)Update level operation
Added the update_level operation, which lowers the level of a variable.
ainageorgesUse alloc_regions to track zero-alloc annotations.
This adds the New_alloc_region and Close_alloc_region primitives, used to track zero-alloc annotations. The Close_alloc_region primitives can be integrated into apply_conts, to avoid them affecting code generation (especially with the simplification of switch expressions). Part of #5278.
Nathanaëlle Courant (@Ekdohibs)Use ambient lattice bounds in jkind normalization
Use lattice-valued ambient bounds to avoid axis-set skip conversions in jkind normalization.
julesjacobsUse ikind provenance for declaration bound errors
This PR improves kind errors for type definitions (type t : bound = RHS) with kind annotations.
julesjacobsUse named binders for shapes
TL;DR Building on top of #4916, this PR moves the use of De Bruijn indices from the shape level to the level of runtime shapes. This has the key benefit that we save ourselves a costly, recursive traversal when computing the type shapes.
Simon Spies (@spiessimon)Use the `neg` instruction for integer negation (amd64)
As per title; this is done at selection rather than
Xavier Clerc (@xclerc)[DRAFT] First-class modalities: `t @@ m` as a type
Poor man's first class modalities: an attempt to get 80% of the value at 20% of the cost (see known limitations below).
julesjacobs`Lregion_close_return`
dkalinichenko-js`Persistent_env.compute` should strip excess args
What the title says.
Zesen Qian (@riaqn)`Translquotes` prototype
Quick sketch of a rewritten quote translation to Parsetree-constructing Lambda. Not planned to be merged. Read commit-by-commit.
Jakub Bachurski (@jbachurski)basic functorization support
Add basic support for -functorize: bundle parameterised modules into a single functor.
Zesen Qian (@riaqn)binary-emitter: prevent stale files from causing verification failures
Found with the testcase on #6640 which failed CI on arm64; vibe-coded fix and testcase by Claude.
Nathanaëlle Courant (@Ekdohibs)cleanup: Get rid of some unused code
The append parameter to Variable.rename is no longer used, and it is dangerous since #4243 -- better be explicit about the name and kind of the expected variable and use create.
Basile Clément (@bclement-ocp)cost_metrics: count separately size of current code_id and of nested code_ids.
Fixes #5141.
Nathanaëlle Courant (@Ekdohibs)flambda2: Rewrite switch with single arm to apply_cont
This makes them seen as inlinable uses in the downwards pass.
Basile Clément (@bclement-ocp)from_lambda: fix continuations being called with invalid kinds
This was causing partial applications with mismatched result continuations to produce code with invalid kinds in the raw flambda.
Nathanaëlle Courant (@Ekdohibs)ocamltest: Make `set` work sensibly within `split`
Each set has a global effect and can only run once, which is a problem
Luke Maurer (@lukemaurer)reaper: remove unnecessary registering of kinds
This also fixes a (very rare) bug, where an unsimplified binding of kind rec_info crashes the reaper. I did not add a test, because having an unsimplified binding of kind rec_info is also a bug, and a fix is coming for that one soon.
Nathanaëlle Courant (@Ekdohibs)regalloc validator: cost Equation_set.union by overlap, not by size
regalloc validator: make Equation_set.union cost proportional to the overlap
julesjacobs