Repository activity
40458 results across all weeks
Confine tick requests to one domain
Domain.Tick.t is supposed to represent a tick request on a particular domain, but currently you can acquire it on one domain and release it on another. There are two issues: first, it crosses portability, and second, you can suspend and resume the current fiber between the acquire and release.
Max Slater (@TheNumbat)Constrain with-bound type variables during unification
I'm not sure we should do this
dkalinichenko-jsContinuation sinking
Pierre Chambart (@chambart)Continuation_uses_env: refine arg types based on arity
We record continuations with their arity in the Continuation_uses_env, in order to be able to refine the types of the arguments based on the arity of the continuation. This is necessary to restore variant unboxing in some cases.
Nathanaëlle Courant (@Ekdohibs)DRAFT: Make module aliases opaque to modes
A module alias is not a real member of the enclosing structure — it is more like a type declaration. This PR makes the mode system treat it that way:
Zesen Qian (@riaqn)DRAFT: introduce Compilation_unit_intf to identify interfaces
A reduced version of #6785. Refactors cross-file references so that interfaces and implementations have distinct identities:
Zesen Qian (@riaqn)Deduplicate contents of continuation handlers
Note: This is a quick proof of concept for #6751; it is experimental (notably we likely want a better hash function on primitives) and not intended to be merged as is.
Basile Clément (@bclement-ocp)Defunctionalisation of simplify
@bclement-ocp: Duplicate of #7219
Basile Clément (@bclement-ocp)Defunctionnalisation of rebuild / after_rebuild
Pierre Chambart (@chambart)Delay import of typing environments
Serialized typing environments are effectively maps from names to types, which we eagerly rename upon import of cmx files. We often only look up only a small fraction of the equations present in the typing env, but still pay the cost for importing it in full.
Basile Clément (@bclement-ocp)Delete p.ml
It was accidentally added in #7207
Jack Rickard (@Skepfyr)Downstream changes from Merlin that improve the performance of the indexer
This PR downstreams two separate PR from ocaml/merlin that improve the memory management for the indexer: ocaml-index. This work is part of the Tarides proposal about "Indexer memory management".
Tim ats (@Tim-ats-d)Enable mode polymorphism for benchmarking demo
Jack Rickard (@Skepfyr)Enable the fragile-match warning in the CFG instruction selectors
Drop the -4 from the warning attributes of cfg_selectgen.ml, cfg_selectgen_target_intf.ml and the amd64 and arm64 cfg_selection.ml, so that catch-all cases in matches over variants are reported.
Xavier Clerc (@xclerc)Evaluate Delta_uleb128 constants generally in the x86 binary emitter
Replaces the exact expression-shape matching for Delta_uleb128 in the x86 binary emitter with a recursive evaluator over the constant language. The sections of operands are tracked, so any assembly-time-constant combination of labels, symbols and integers is accepted, and only differences within a single section (which are link-time invariant) can produce a …
Mark Shinwell (@mshinwell)Export Flambda 2 information for units with no final typing environment
This PR tweaks how typing information is stored in .cmx files in preparation for link-time optimization. Previously, a unit whose top-level module startup code does not return would not emit the normal data (i.e., the identifier table, and the code and offsets reachable from the module symbol) into .cmx files. It does now and only emits the typing environmen…
Simon Spies (@spiessimon)Expose modality implications for structured diagnostics
Gavin Gray (@gavinleroy)Expose typed mode-error provenance
This PR exposes function to make working with a Mode_hint outside of Mode easier.
Gavin Gray (@gavinleroy)Expose uniqueness errors for structured diagnostics
let dup x = ((x, x) : @ unique)
Gavin Gray (@gavinleroy)Fix Ifloatarithmem with multi-register addressing modes
Cfg_selection.pseudoregs_for_operation grouped Ifloatarithmem with the two-address Floatop case and returned [| res.(0); arg.(1) |]. When the memory operand uses a two-register addressing mode (Iindexed2scaled, produced by a variable-index float array load), the second addressing register arg.(2) is dropped, and the amd64 emitter raises Invalid_argument("in…
evan-a-w