Repository activity
40458 results across all weeks
Structured mangling: number anonymous functions instead of embedding positions
Previously, the mangled names for lambdas and anonymous modules contained their exact
Kevin Svetlitski (@Svetlitski)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 -opaque imports by implementation
Based on main; independent of the Compilation_unit_intf stack.
Zesen Qian (@riaqn)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-jsType 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)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-jsUse `stdlib/stdlib.ml`, in the locations for stdlib modules
Parks the commit added in #7632 (comment), as it creates quite bit of churn, and some of the implications for merlin and friends need checking.
David Allsopp (@dra27-js)Use indirect-call tracking logic for arguments as well as symbols
TL;DR: track whether we're calling a function argument when making an indirect call
Will Sturgeon (@wrsturgeon)Use lld to link the compiler
The LLVM linker is widely installed and about 10x faster at linking the compiler than the GNU one. So we should use it, if available.
Stephen Dolan (@stedolan)[5.4] Import upstream's runtime header hygiene changes
Backport various 5.5 PRs, principally led by @MisterDA, so we can perhaps chase our C++ tails a little more easily.
David Allsopp (@dra27-js)[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)[Ignore] For CI (rtjoa.scratch-on-52m6-lub)
Ryan Tjoa (@rtjoa)[TEST] To_cmm: mark calls that never return
dkalinichenko-js[WIP] Annotate the stdlib with statefulness
dkalinichenko-js`-Oclassic -flambda2-expert-inline-effects-in-cmm`: `let f x = let y = sin x in (y, y)` fails with "Duplicate order for bindings when flushing"
Program (prog.ml)
Alperen Keleş (@alpaylan)`-Oclassic -flambda2-expert-inline-effects-in-cmm`: a call used as the argument of another call inside a `try` crashes ocamlopt with `Invalid_argument("Array.iter2 ...")`
Same crash site as #7668, but different problem; #7669 does not fix it (checked on aadb380 + #7669).
Alperen Keleş (@alpaylan)`-use-ssa`: SSA validator rejects `x <= 1` against `x < 2` for the same switch, compilation aborts with "CFG comparison MISMATCH"
Program (prog.ml)
Alperen Keleş (@alpaylan)`-use-ssa`: a call followed by an unused pure operation becomes a tail call only in the SSA pipeline, validator aborts with "CFG comparison MISMATCH"
Program (prog.ml)
Alperen Keleş (@alpaylan)`[@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)