Repository activity
40458 results across all weeks
Run the compiler testsuite in nix's check phase too
Stacked on #7547. Enables make ci in the nix oxcaml package's check phase, which #7547 scoped to the js_of_ocaml tests: make ci had never actually run under nix (doCheck defaulted to false), and the testsuite was not sandbox-clean.
Jacob Van Buren (@jvanburen)Run the js_of_ocaml tests on the compiler build, in nix's check phase
Stacked on #7542. Makes js_of_ocaml a fully tested part of the compiler build: make jsoo-test runs the js_of_ocaml test suite on the js_of_ocaml the compiler ships, and the nix oxcaml package runs it in its check phase, so a js_of_ocaml failure fails the compiler package (only the jsoo tests: make ci never actually ran under nix — doCheck defaulted to fals…
Jacob Van Buren (@jvanburen)Share rebuild functions for different kinds of apply
As noticed by @Ekdohibs in the review of #7497, we effectively use the same rebuild function for the various types of apply.
Basile Clément (@bclement-ocp)Shortcut module block reconstruction in from_lambda
Built on #7467 for improvements.
Keryan Didier (@Keryan-dev)Split instantiating functors with too many runtime parameters
A parameterized unit is compiled to a functor taking both the parameters
Luke Maurer (@lukemaurer)Staticity of applications of `include functor` and generative functors
Generative functor applications must always be Dynamic.
Jakub Bachurski (@jbachurski)TLS per preemptible fiber
TLS state is now per-preemptable-fiber rather than per-systhread. Main stacks also count as preemptable. Non-preemptable fibers see TLS state from the nearest enclosing preemptable fiber. Creating a preemptable fiber or main stack splits TLS state.
Max Slater (@TheNumbat)TLS without crossing
Now that TLS is per preemptable fiber, we can provide an interface that does not require the contents to cross portability or contention. This PR adds access and deletes the old get/set interface. It also deletes the unused unsafe TLS module, since it does not appear upstream.
Max Slater (@TheNumbat)TMC now closes regions before recursing
Previously, TMC annotated functions that had local allocation failed to close the region before recursing, leading to these functions using unbounded stack space. This commit changes the TMC pass to attempt to close the region when safe to do so. In the event it's not safe, we now raise a warning instead of silently producing a function that behaves unexpect…
Aaron Eline (@aaronjeline)Track never-returning functions in Flambda
Introduce a new Unknown case to Flambda_arity.t, and represent function returns with [Unarized | Unknown] Flambda_arity.t. Use Unknown arity for never-returning functions, and use caller's arity information when calling them.
dkalinichenko-jsTranslate address patterns to lambda
This PR finishes support for basic address patterns by implementing their translation to lambda.
Benjamin Peters (@bn-peters)Turn some Flambda inlining back on for JSIR
As discussed, turn inlining back on when bodies of functions don't define sets of closures or use function/value slots. Just checking is_my_closure_used turned out to be insufficient, because Flambda can project functions/values from different closures (in which case the current function body's my_closure wouldn't be used).
Leo Lee (@smjleo)Tweak `DLS` and `TLS` operations to reduce code size
This tweaks both DLS and TLS operations to reduce size of generated code to what seems like less than half for get operations in particular.
Vesa Karvonen (@polytypic)Type checking for address patterns `addr_` and `addr_imm_`
Type checks address patterns, but raises an exception in the translation to lambda.
Benjamin Peters (@bn-peters)Uniqueness analysis: borrowing a field blocks unique use of its parent
The uniqueness analysis accepted a unique use of a value while one of its fields was explicitly borrowed:
Zesen Qian (@riaqn)Update stdlib raise functions to return `any`
e7f276a:
dkalinichenko-jsVery large frames need stack checks even when no_stack_checks
When stack-checks are disabled, we use a memory-protected "guard page" to catch stack overflow. However, functions with stack frames of more than one page can skip over this guard page and crash. So we should retain stack checks on such functions (this is a very few functions, generally huge and time-consuming, so another few instructions on function entry a…
Nick Barnes (@NickBarnes)Warn on plain reads and writes of atomic record fields
Plain field syntax on an [@atomic] field compiles to an atomic operation, which is easy to miss when reading code. For example, after making a field atomic,
Joe Kerrigan (@joe-kerrigan)[Draft] Specialisation primitive
This PRs introduce a specialization primitive (called Unboxed_closure for historical reasons, this will be changed in the future), meant to be generated by the reaper when lambda-lifting to allow the lifted closures to be specialized on their value-slots-turned-parameters if Simplify runs through the code initially containing the set of closures again (typic…
Vincent Laviron (@lthls)`[@elide_void]` attribute for `external`s
Add an attribute that allows the frontend to elide arguments with void layout passed to externals.
David Vulakh (@dvulakh)