Repository activity
40458 results across all weeks
Support poison values when transforming switches into lookup tables
Poison constants are a bit weird in that they report that they have a given kind (e.g. naked_immediate) but return None when we try to call is_naked_immediate.
Basile Clément (@bclement-ocp)Support sort variables in primitive declarations
Previously, primitive declarations (even those annotated with [@layout_poly]) were not permitted to contain sort variables. This stops us from writing something like the layout-polymorphic identity primitive:
Joe Kerrigan (@joe-kerrigan)Support tail mod cons destinations in mixed blocks
As title. This is needed for layout polymorphism, as there are many functions we'd like to make layout poly that use tmc.
Chris Casinghino (@ccasin)Support undetermined constructor shapes in `value_kind`
For records and variants containing any, compute Pvariant value_kinds even when some constructor representations are undetermined, instead of bailing out to Pgenval for the whole type.
Ryan Tjoa (@rtjoa)Symbol-related fixes for LTO
Three independent fixes, stacked on lto-prototype.
Mark Shinwell (@mshinwell)Temporarily disable the XXX check pending #7165
The "check" job's git fetch origin "$GITHUB_SHA" --deepen 1 step
Luke Maurer (@lukemaurer)Track function arguments in mode-solver provenance
Similar to #6249 this PR adds additional provenance tracking for mode constraints. This PR adds directional morph hints connecting a callee parameter to its argument, preserving both locations, the argument label, and its position.
Gavin Gray (@gavinleroy)Track modality annotation provenance in mode hints
This PR extends the Annotation mode hint to work with (1) modality annotations and (2) track implied modes/modalities.
Gavin Gray (@gavinleroy)Untangle sort variables
There was some confusing code around sort variables, particularly generalisation/instantiation.
Jakub Bachurski (@jbachurski)Update merlin mapping of magic numbers
-ox8 is rolling without a magic number bump, but we can keep #7208 ready for -ox9, just with this small tweak.
David Allsopp (@dra27-js)Update stale wording for AGENTS.md
Agents are smart enough to make commits now
dkalinichenko-jsUse DFS rather than dominators to compute back edges for polling
In Cfg_loop_infos.compute_back_edges, use back edges as defined by a DFS traversal (i.e. edges to a DFS-tree parent) instead of back edges as defined by dominator analysis (i.e. edges from a node to a dominator).
Stephen Dolan (@stedolan)Use renamings instead of var to var let bindings for dataflow renamings
I understand @bclement-ocp 's frustration from #6775 . This might be some welcome additional cleanup.
Pierre Chambart (@chambart)Various small flambda2 cleanups
Those are independents cleanups commits.
Pierre Chambart (@chambart)Very large frames need stack checks even when no_stack_checks
When stack-checks are disabled, we use a memory-protected "guard page" to catch stack overflow. However, functions with stack frames of more than one page can skip over this guard page and crash. So we should retain stack checks on such functions (this is a very few functions, generally huge and time-consuming, so another few instructions on function entry a…
Nick Barnes (@NickBarnes)[Draft] Specialisation primitive
This PRs introduce a specialization primitive (called Unboxed_closure for historical reasons, this will be changed in the future), meant to be generated by the reaper when lambda-lifting to allow the lifted closures to be specialized on their value-slots-turned-parameters if Simplify runs through the code initially containing the set of closures again (typic…
Vincent Laviron (@lthls)[WIP] Support subtyping through first-class modalities
Follow-up to #7096, based on its branch. Allow explicit subtype coercions through first-class modalities, so portable elements can be unwrapped inside covariant containers without rebuilding them:
dkalinichenko-js`scannable non_pointer{,64}` is `mod external{_,64}`
Make it so the kind scannable non_pointer (and thus all subkinds, such as immediate and value non_pointer) is inherently mod external_, and so scannable non_pointer64 is inherently mod external64.
Ryan Tjoa (@rtjoa)amd64: add -align-loops to 16-byte-align loop headers
Emit ".align 16" (nop fill) before loop header labels, so that small hot loop bodies do not straddle a 64-byte cache line boundary. AMD Zen 4 can only fetch from a single 64-byte cache line per cycle, so a 16-byte loop body crossing a 64B line runs at ~2 cycles/iteration vs ~1 when contained, making unrelated code motion flip hot loops between fast and slow …
Jacob Van Buren (@jvanburen)blambda: fix double-rounding bugs
Fixes a few double-rounding bugs in blambda using runtime functions, which did not exist when the code was created (caml_float32_to_int64_bytecode and caml_float32_of_int64_bytecode). Adds a regression test.
hwasilewskijs