Repository activity
40458 results across all weeks
Temporarily switch to web fetches of opam in CI
This temporarily switches us from a git fetch of opam to a web fetch of opam on CI while everything is failing (probably due to being unauthenticated). It's a fast and safe fix but isn't suitable long term because it puts a lot of unecessary load on the opam servers.
Jack Rickard (@Skepfyr)Test
James Rayman (@jra4)Test to see what defunctionnalisation would look like
This covers only after_rebuild right now, and some parts are still missing for recursive continuations.
Pierre Chambart (@chambart)Tighten location of `Pexp_hole` in `?_` and `~_`
Possible oversight in #4956? It seems inconsistent that ?label and ~label give the location for label but ?_ and ~_ give the location for ?_ and ~_ rather than just the _
David Allsopp (@dra27-js)Track constants and field projections in register availability
This PR is part of the dwarf202607 series (24 PRs) adding end-to-end DWARF debugging improvements for code compiled with Flambda 2: phantom lets so the debugger can print optimised-out variables, correct attribution of parameters and variables to inlined frames, and DWARF call site information.
Mark Shinwell (@mshinwell)Track modality annotation provenance in mode hints
A requirement introduced by val baz : unit -> unit @@ portable currently reaches the mode solver without the written modality annotation or its location. Retain that provenance in a Modality_annotation hint so diagnostics can explain where the requirement came from. This hint is intended for structured diagnostics and are ignored by the current diagnostic pr…
Gavin Gray (@gavinleroy)Track variables needed by phantom lets via a third user-visibility state
Problem. With -flambda2-expert-phantom-lets, Simplify turns deleted bindings into phantom lets so the debugger can reconstruct their values. But a phantom let's defining expression may reference variables that are not user visible, such as call results bound to return-continuation parameters, or unboxed values carried around a loop. To_cmm gives non-user-vis…
Mark Shinwell (@mshinwell)Translate Flambda 2 phantom lets to Cmm
This PR is part of the dwarf202607 series (24 PRs) adding end-to-end DWARF debugging improvements for code compiled with Flambda 2: phantom lets so the debugger can print optimised-out variables, correct attribution of parameters and variables to inlined frames, and DWARF call site information.
Mark Shinwell (@mshinwell)Two backend fixes: support V256_of_vec/V512_of_vec with stack destination; CPause takes no arguments
Two unrelated fixes, split out of the SSA branch because they are independent of it.
ttebbi-janestreetType-directed disambiguation of unit/unit# in statements
@ccasin: A few suggestions, but looks good to me - thanks!
James Rayman (@jra4)Unloading of metaprogramming compilation units
Final part of the unloading stack: #7041, #7032, #7033, #7034, #7035, #7036, #7037, #7038, then this PR. Replaces #5960, whose head branch was on a fork and so could not join a GitHub stack. The overall design is in metaprog_unloading_design.md, added by #7037.
Mark Shinwell (@mshinwell)Unloading of metaprogramming compilation units
Final part of the unloading stack: #7041, #7032, #7033, #7034, #7035, #7036, #7037, #7038, then this PR. The overall design is in metaprog_unloading_design.md, added by #7037.
Mark Shinwell (@mshinwell)Untangle equating sorts
This should be a conceptually equivalent refactor of Sort.equate.
Jakub Bachurski (@jbachurski)Untangle sort variables
There was some confusing code around sort variables, particularly generalisation/instantiation.
Jakub Bachurski (@jbachurski)Update system prompt for Claude Code GitHub action
Claude thinks it can't run tests, and it keeps trying to push, even though it's not allowed to. Update the system prompt to try and discourage each of these behaviors even more loudly.
Joe Kerrigan (@joe-kerrigan)Upstream Merlin's `Pmod_hole` into the compiler
Pmod_hole - the module_expr dual of Pexp_hole, which has been in Merlin's parser for some time. This is a precursor to attempting to upstream both of these to OCaml, allowing the ppx ecosystem to use these parsetree nodes as well.
David Allsopp (@dra27-js)Use %progbits not @progbits on ARM
ARM assemblers like % sigils, as @ (used on AMD) is a comment character. @ does work in section-type position (which is good as it's used in the cross-platform backend/asm_targets/asm_section.ml), but it's good to be consistent with other sigils in our ARM64-specific code.
Nick Barnes (@NickBarnes)Use 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 atoms for zero-sized static allocations
To_cmm redirects every reference to a zero-sized static block (empty arrays and similar constants) to the runtime's caml_atom_ symbol of the same tag, and no longer emits the block. Symbols that may be referenced from other units keep a definition so cross-unit references still link; nothing within the unit refers to it. This works identically in AOT and JIT…
Mark Shinwell (@mshinwell)Use base addresses and offset pairs in DWARF-5 location and range lists
Sixth in the series reducing the size cost of --enable-oxcaml-dwarf-on-compiler (on top of #6923). Attacks the .debug_addr cost left by the DWARF-5 conversion: startx_endx entries put two 8-byte address-table slots (each with a relocation) behind every distinct range boundary — 8.2 MB of .debug_addr (~1M entries) across a compiler build.
Mark Shinwell (@mshinwell)