Repository activity
40458 results across all weeks
Adding a `-runtime-variant baremetal`
Adding a runtime variant for bare metal and gating most OS-dependent parts on not bare metal. It forces single domain, no threads or signals, has no-op mutexes and malloc-based memory mapping.
Vlad Turcuman (@vladturcuman)Addressable kinds
Add addressability to the kind system, which describes kinds that one will be able to take a pointer to when boxed. For example, a bits64 box will be represented as a block with all data in its body, and thus bits64 is addressable, whereas a bits8 box is represented as a tagged immediate, so bits8 is unaddressable.
Ryan Tjoa (@rtjoa)Allocation Mode Axis
Add Allocation mode axis to analyze whether a function allocates on heap.
zhizhuoxinAllow Parsetree compiler hooks to edit the AST
The Compiler_hooks module doesn't allow hooks to edit the IRs, because to do so will in general break internal invariants. It's fine for parsetree hooks, though, since that's how ppxs work.
Stephen Dolan (@stedolan)Allow [@@or_null] GADTs
Summary
julesjacobsAllow canonical naming of symbols
Follow-up of #6318
Keryan Didier (@Keryan-dev)Allow recursive uses within non-value fields of mixed blocks
The recursive value check marks constructor arguments and record fields in the flat suffix of a mixed block as Dereference, rejecting definitions like:
Ryan Tjoa (@rtjoa)Assure young handlers aren't forgotten between update/continue
If you update a major cont to contain minor handlers, then enter the GC, the handlers will be forgotten.
Max Slater (@TheNumbat)Avoid extra shift+tag when accessing fields through idx_atomic
Addresses internal ticket 7717.
Joe Kerrigan (@joe-kerrigan)Backend debuginfo-quality fixes for spills, reloads and inserted blocks
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)Bound the immediates of the Switch rewrites in Simplify_terminator.
simplify_switch rewrites some shapes of Switch terminators into
Xavier Clerc (@xclerc)Bump cachix/install-nix-action from 31.10.6 to 31.10.7 in the actions group
Bumps the actions group with 1 update: cachix/install-nix-action.
Dependabot (@dependabot)Bump the actions group across 1 directory with 4 updates
Bumps the actions group with 4 updates in the / directory: actions/checkout, ocaml/setup-ocaml, cachix/install-nix-action and zizmorcore/zizmor-action.
Dependabot (@dependabot)CI: dump kernel diagnostics on job failure (Linux)
We have seen sporadic SEGVs from gcc, binutils ld, and prebuilt OCaml binaries on CI runners (Aug 18-19), which look like runner-level memory corruption rather than compiler bugs. When a job fails, print the kernel's segfault records (fault address + instruction pointer for every crashed process), any MCE/EDAC hardware-error records, the tail of the kernel l…
Jacob Van Buren (@jvanburen)Collapse kind-templated closures
Collapse kind templated closures from fun env -> fun args -> body to fun env args -> body. It also bans anything other than a function definition on the right hand side of a let poly_ f =, this is probalby overly strict but it's hard to nail down semantics for anything else and we can always relax this in the future.
Jack Rickard (@Skepfyr)Compute availability ranges for phantom variables
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)Compute known values across blocks with a dataflow analysis in Simplify_terminator.
Under the new -cfg-value-propagation-dataflow flag (off by default, but
Xavier Clerc (@xclerc)Constrain with-bound type variables during unification
I'm not sure we should do this
dkalinichenko-jsCopy propagation for linscan and greedy allocators
This pull request implements a basic variant
Xavier Clerc (@xclerc)Delete redundant constant moves in Simplify_terminator.
When the destination register of a Const_int move is statically known to
Xavier Clerc (@xclerc)