Repository activity
40458 results across all weeks
Type checking and parsing for dereference patterns `deref_`
deref_ patterns allow you to reference the address of a record field or tuple:
Benjamin Peters (@bn-peters)Typing recovery for `Typemode` errors
This PR improves type recovery for typemode.ml errors, which is currently broken. User-facing errors (ie errors registered with Location.register_error_of_exn) are supposed to be registered with error recovery and are supposed to be raised via error recovery. For example, look at the changes to Typedecl.Error in the PR that introduced error recovery to the c…
Liam Stevenson (@liam923)Typing recovery for float 32 matching
This PR improves type recovery for float 32 match errors, which is currently broken. User-facing errors (ie errors registered with Location.register_error_of_exn) are supposed to be registered with error recovery and are supposed to be raised via error recovery. For example, look at the changes to Typedecl.Error in the PR that introduced error recovery to th…
Liam Stevenson (@liam923)Typing recovery for jkind errors
This PR improves type recovery for some jkind errors, which is currently broken. User-facing errors (ie errors registered with Location.register_error_of_exn) are supposed to be registered with error recovery and are supposed to be raised via error recovery. For example, look at the changes to Typedecl.Error in the PR that introduced error recovery to the co…
Liam Stevenson (@liam923)Typing recovery for mode errors
This PR improves type recovery for some mode errors, which is currently broken. User-facing errors (ie errors registered with Location.register_error_of_exn) are supposed to be registered with error recovery and are supposed to be raised via error recovery. For example, look at the changes to Typedecl.Error in the PR that introduced error recovery to the com…
Liam Stevenson (@liam923)Typing recovery for uniqueness errors
This PR improves type recovery for some uniqueness errors, which is currently broken. User-facing errors (ie errors registered with Location.register_error_of_exn) are supposed to be registered with error recovery and are supposed to be raised via error recovery. For example, look at the changes to Typedecl.Error in the PR that introduced error recovery to t…
Liam Stevenson (@liam923)Use DFS for CFG dead-block reachability
This pull request simplifies the
Xavier Clerc (@xclerc)Use find_opt instead instead of exceptions for control flow in Table_by_int_id, Env, Subst
Use find_opt instead of exceptions for control flow in Table_by_int_id, Env, Subst
Alec Singer (@alecsinger)Use raise_notrace for control-flow exceptions in Env and Ctype
Use raise_notrace for control-flow exceptions in Env and Ctype
Alec Singer (@alecsinger)Various testsuite / ocamltest cleanups
This PR is a prerequisite for a much faster incremental test cycle, implemented by making ocamltest tests run under dune using the bootstrap compiler.
Stephen Dolan (@stedolan)Wrap indexing and vector primitive tables in lazy
Build primitive tables lazily instead of at module initialization
Alec Singer (@alecsinger)`-flambda2-reaper`: Cmm handler declared with 0 arguments is called with 1 (`-dcmm-invariants`)
Program
Ethan Chou (@echoumcp1)`Unix.map_file`: protect against overflows (ocaml/ocaml#15112)
Cherry-pick of ocaml/ocaml#15112 (@xavierleroy and @nojb, de57bb4f59, in 5.5.2), fixing OSEC-2026-22 (CVSS 5.5 Medium): the product of bigarray dimensions passed to Unix.map_file was computed with unchecked multiplication, so attacker-influenced dimensions or file sizes could overflow and map an undersized region. The fix multiplies via caml_umul_overflow (r…
Nick Barnes (@NickBarnes)`float32#` constant 2^62 emitted as an `fmov` immediate, assembler rejects it
Program (prog.ml)
Ethan Chou (@echoumcp1)`ocamlopt` crashes on a local function applied to the contents of a `ref`
Program (foo.ml)
Ethan Chou (@echoumcp1)allow zero-alloc backend to reason about call sites whose callees are conditionally nonallocating
Respect [@@zero_alloc conditional] at call sites, such that e.g. List.iter ignore xs is non-allocating since List.iter is conditionally zero_alloc and ignore is non-allocating. Previous PRs in this stack did not respect conditional at call sites.
Will Sturgeon (@wrsturgeon)arm64: add -ffp-contract=on|off to control binary64 multiply-add contraction
The arm64 native selector currently contracts nested
mmm00007arm64: expose positive constant offsets at unaligned vec128 Bytes access sites
Depends on #7809 (arm64-vec128-addressing): this branch is based on it, so its first two commits are that PR's. Please review the top two commits.
mmm00007arm64: reuse indexed addresses for unaligned vec128 accesses
Eliminate an extra scratch-register addition for arm64 unaligned 128-bit loads and stores by using indexed addresses. Previously each such access formed base + offset in x16 and accessed [x16], even when the offset was zero. For Iindexed, the emitter now passes the selected addressing operand directly to the load or store. Selection already validates vector …
mmm00007feat(typing): scheduler monitors
Description
Alistair (@johnyob)