Repository activity
40458 results across all weeks
Middle modality mode crossing
With-bound relevance used to be tracked as an axis set, which loses information for modalities that are middle elements on their axis. This changes with-bound relevance to use the axis_lattice mask so those middle bounds are preserved through normalization, subkind checks, and ikind conversion.
julesjacobsMode Variable Subsumption
This feature implements subsumption for polymorphic mode variables.
ainageorgesMode variable levels
Support levels in the mode solver.
ainageorgesMore complete type inference with `eval` and concrete types
Motivation
Jakub Bachurski (@jbachurski)Move Caml-exit GC stats reporting code
Move GC-stats-specific code to the gc_stats module, and lift the call to it from sys.c into a separate function to give us a natural place to put other stats-reporting code (this has come up in a couple of development branches lately).
Nick Barnes (@NickBarnes)Move `Btype.hash_variant` to `Obj`
Backports the first commit of ocaml/ocaml#14939. The second commit from that PR can't be adopted until the system compiler is OCaml 5.6. Backporting this follows on from #6530, and removes the need for an OxCaml shim for the function's location.
David Allsopp (@dra27-js)Move `any`-fields to stable
Move any-kinded fields and arguments to stable (undoing #6173).
Ryan Tjoa (@rtjoa)New Flambda -> Cmm phantom let translation scheme
Alternative to #6519's handling of phantom lets in To_cmm, for comparison with the reference-erasure scheme there. Part of the dwarf202607 series; stacked on #6822 (same base branch as #6519).
Mark Shinwell (@mshinwell)Non-scanned layouts cross externality inherently rather than syntactically
We currently have a syntactic implication that non-value base layouts such as bits32, etc., imply mod external_ (#5162).
Ryan Tjoa (@rtjoa)Occurs check for sort variables
Currently, we do not perform an occurs check when unifying sort variables - possibly under the assumption that any problematic cases would be caught by the occurs check for type variables.
Ryan Tjoa (@rtjoa)One template instantiation per CU
Deduplicate template instantiations so there's only one per compilation unit.
Jack Rickard (@Skepfyr)Pattern matching: support jump tables for unboxed values
(As per title; not reviewed yet.)
Xavier Clerc (@xclerc)Preserve phantom lets through instruction selection, CFG and Linear
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)Produce structured mode diagnostics
Summary
Gavin Gray (@gavinleroy)Provide a way to run the tests with the boot compiler
This makes it possible to run the testsuite with the boot compiler, instead of having to wait for the full compiler to be built. As some tests depend on libraries like ocamlcommon which take a long time to build, tests that require anything more than the stdlib are skipped (see the oxcaml/testsuite/boot-test-list file).
Nathanaëlle Courant (@Ekdohibs)Read manifest files with a single preallocated buffer
The compiler can read thousands of manifest files per invocation (-I-manifest / -H-manifest). The reader used In_channel.input_line, paying two locked channel primitives and 1–2 string allocations per line.
Zesen Qian (@riaqn)Record manifest reading in a profiling region
Manifest reading (-I-manifest / -H-manifest) happens in Load_path.init, before any recorded compiler pass, so its cost was invisible in -dtimings — folded into the toplevel other row. This wraps init_manifests in a read_manifests profiling region so it shows up as its own row, e.g.:
Zesen Qian (@riaqn)Record synchronized Merlin import
Summary
Gavin Gray (@gavinleroy)Reduce CAML_GC_MESSAGE overhead, and many-domain CPU overhead
A profile indicated a lot of CPU time being spent in caml_gc_message in some parallel workloads with many idle domains. It's unclear how much throughput was affected (versus burning CPU on otherwise-nearly-idle cores), but it's still concerning. This PR addresses two factors:
Nick Barnes (@NickBarnes)Refactor `Target_system`
This PR refactors Target_system after cleaning up some dead code and duplication. The main changes are as follows.
shym