Repository activity
40458 results across all weeks
Make unboxed versions of mutable records invariant
As described in #7137, we cannot have both box and unboxed versions of mutable records be covariant. Specifically, we must reject the following definition, which uses box to ignore the variance of t:
Zack Eisbach (@zackbach)Moconnor/laws per law choices
Based on #7485. Each law in the generated laws file now takes only its own choice instead of a module with the choices of every law; laws in functors take the choice of a module with the functor's parameters and the law's input choice.
Michael O'Connor (@mkoconnor)Mode polymorphism parsing: typing
This PR is part of a stacked PR for mode polymorphism parsing.
ainageorgesMode polymorphism printing: aliases
This PR implements printing of mode aliases in a mode polymorphic signature.
ainageorgesMore `local` and `local read` args and `unique` results in Stdlib
This annotates some arguments of Stdlib functions as local and some as local read and some results as unique.
Vesa Karvonen (@polytypic)Normalize LLDB stopped-frame indentation in debugger tests
Normalize only the leading whitespace of LLDB stopped-frame summaries (frame #:) to the four spaces used by the existing references. Stock Apple LLDB on this machine prints seven spaces, causing the macOS ARM64 debugger test to reject otherwise identical output. The same failure reproduces with the unmodified compiler.
ArceniyVarlamovParsing: mode variables, mode bounds and morphisms
This PR (based on #7627) is part of a stacked PR for mode polymorphism parsing.
ainageorgesPass "fat pointer" values to C as pointers
This adds @fat_ptr annotations to parameters of [@noalloc] external calls. These parameters are understood as a "fat pointer" of base and offset, with value_or_null & bits64 layout, such as an Ox.Ptr.t. The compiler adds the two words of the fat pointer together to get a single address word, which can be passed to a C function expecting a pointer.
Nick Barnes (@NickBarnes)Persistent_env: only record imports not already in crc_units
Persistent_env: only record imports not already in crc_units
Alec Singer (@alecsinger)Protect demarshaler against malformed data
Fix multiple issues in demarshaling.
Nick Barnes (@NickBarnes)Refactor and fix block index validity and privacy checks
Merge all checks on the path of a block index into a single new function check_block_path. This makes them reusable for other ways of pointing into a block such as dereference patterns #7707 . Functionality that is intended to be shared with block indices and other features now refers more generally to "block paths".
Benjamin Peters (@bn-peters)Remove Contains_ids.S, replace it by Contains_names.S and use it systematically
we should add ids_for_export to Contains_names
Pierre Chambart (@chambart)Remove trap-handler entry-point mode from CFG dataflow
Similarly to #7837 and #7839,
Xavier Clerc (@xclerc)Rename Safe to Yielding in Stdlib.Effects
It turns out that Effects.Safe API and friends are not actually safe (see #7672). As discussed, there seems to be no easy way to fix this without re-introducing the Handled_effect library into the stdlib, so we rename this to Yielding and a comment explaining that we expect handlers to handle all effects.
Leo Lee (@smjleo)Report [@unrolled] rather than [@inlined] on partial applications
[@unrolled] on a partial application reports the wrong attribute name.
James Lee (@jmes2build)Simplify CFG depth-first traversal
Similarly to #7837, we can simplify
Xavier Clerc (@xclerc)Simplify CFG dominators to a single tree
After #7836 makes dead handlers
Xavier Clerc (@xclerc)Simplify tagged self-XOR shifts and select arm64 shifted EOR
Simplify the exact same-variable tagged self-XOR/left-shift lowering modulo the machine word in Cmm, and select shifted EOR for simple arm64 operands. The fallback for other offsets, operands and shifts is preserved, and logical versus arithmetic shift semantics are retained. Upstream's get_const helper replaces the explicit constant cases, Cxor leaves the a…
mmm00007Single source of truth for struct offsets in asm stubs
Some of the asm stubs need field offsets in C structs. This ensures that they get the right values even if the structs change.
Nick Barnes (@NickBarnes)Translate dereference patterns `deref_` to lambda
This PR finishes initial support for dereference patterns by implementing their translation to lambda.
Benjamin Peters (@bn-peters)