Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Delete redundant register-to-register moves in Simplify_terminator.

    A move between registers is deleted when its source and destination are both

    Xavier Clerc (@xclerc)
  2. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Do not link never-returning branches to join blocks in Sub_cfg

    Part of the dwarf202607 series, but a self-contained backend fix for a latent bug, so it is parented directly to main. (It was originally applied to #6517's branch, postdating that PR's review; it has been reverted there and moved here.)

    Mark Shinwell (@mshinwell)
  3. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Document invariants of Simplify_terminator.

    Three comments, no code change:

    Xavier Clerc (@xclerc)
  4. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Emit DWARF call site information

    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)
  5. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Enable phantom lets by default

    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)
  6. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Expose Mode Hints

    This PR exposes more hint information such that external uses (e.g., the interactive diagnostics) can extract them as data. Additionally, extra provenance information is tracked so that the diagnostics can be more precise about where a constraint originated. The following are core contributions:

    Gavin Gray (@gavinleroy)
  7. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Expose structured diagnostics from compiler and Merlin

    Summary

    Gavin Gray (@gavinleroy)
  8. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Filter nested ikind provenance explanations per axis

    Stacked on #6262.

    julesjacobs
  9. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Finalize variable (`any`-field) representations at translation instead of typechecking

    Records and variants containing any store variable representations (e.g. Record_variable) on their type declarations, which we refine to a fixed representation when typechecking a use of such a record. However, in doing so, we currently default any unfilled sort variables to scannable, preventing them from later being inferred to be something else.

    Ryan Tjoa (@rtjoa)
  10. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix `DW_AT_call_{file,line,column}`

    Per the DWARF spec, DW_AT_call_{file,line,column} on an inlined call should correspond to the call-site, not the definition site. There was a bug with the debuginfo where we were taking this from the definition site instead. I have fixed this, and added a test to catch regressions.

    Kevin Svetlitski (@Svetlitski)
  11. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix a typo in the modes docs

    The definition of 'identity modalities' was wrong on two axes.

    Stephen Dolan (@stedolan)
  12. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix dummy block sizing for recursive mixed blocks

    For recursive values, we allocate dummy blocks whose contents are then back-patched, so compilation needs to compute ahead of time how large of a dummy block to allocate. This analysis is currently incorrect, as we allocate a single word per element, which undercounts.

    Ryan Tjoa (@rtjoa)
  13. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix incorrect DWARF filepaths

    Previously, if code in app/foo/one.ml made a function call to something defined in app/bar/two.ml, and that function-call was inlined, the filepath for the function defined in app/bar/two.ml would be mistakenly reported as app/foo/two.ml (i.e. correct source file, wrong directory). Similarly, when an external bound in app/foo/one.ml was coerced to a val expo…

    Kevin Svetlitski (@Svetlitski)
  14. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix ocamloptcomp compile flags

    We're compiling ocamloptcomp with the wrong flags, and it looks like it's been this way more or less since flambda-backend branched from upstream ocaml.

    Stephen Dolan (@stedolan)
  15. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix principal checking in ocamltest

    Recent expect_asm work broke expect-tests for principal outputs, overriding the same expect block, if only one is present, with both non-principal and principal outputs. Properly split the output in those cases. Combine back principal and non-principal cases that are the same.

    dkalinichenko-js
  16. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix stack growth use-after-free

    caml_tick_fiber_res runs tick handlers on the current stack, which (when stack checks are in use) may grow the current stack. The stack pointer in the outermost recursive call corresponds to the current stack, so may be invalidated. We can fix this by reloading the pointer from the domain state.

    Max Slater (@TheNumbat)
  17. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix yielding inference for Stdlib.Effect.Shallow.fiber

    The setup effect that's performed at the beginning of Shallow.fiber needs to be in a yielding context, or else the JSOO compiler will direct-call the computation for the fiber and the effect will raise Unhandled.

    Aspen Smith (@glittershark)
  18. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Fix: Compiling nested recursive mixed blocks fatal errors

    The recursive value compiler needs to recognize allocation sites, but we don't recognize allocations of recursive mixed blocks themselves. I.e., we didn't respect this comment when adding caml_alloc_dummy_mixed:

    Ryan Tjoa (@rtjoa)
  19. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Flip default for shapes

    This PR flips the default format for shapes. This impacts several aspects:

    Simon Spies (@spiessimon)
  20. Pull requestW34.2026 · 17–23 Augoxcaml/oxcaml

    Freeze & shift dynamic tables

    Previously, it was unsafe to change binding state after freezing the scope, since child fibers are allowed to concurrently read from it. However, we need to support this so that the parent running the with_scope callback / the left child of fork_join can still bind dynamics.

    Max Slater (@TheNumbat)