Repository activity
40458 results across all weeks
Add bitwise `not` to lambda and flambda
This improves some codegen, mainly by removing sign-extensions, and is setup for a later PR that will update the backend IRs so NOT/ORN instructions can be emitted.
James Rayman (@jra4)Add bitwise `not` to the backend
This allows the compiler to emit NOT/ORN instructions rather than emulating them with XOR -1.
James Rayman (@jra4)Add borrowability and borrowedness mode axes
Groundwork for the exclusive/separate modes (internal ticket 1017). This adds the two new axes the design calls for, fully plumbed through the mode solver, jkinds and printing, but with no semantics of their own yet: nothing infers unborrowable or requires owned except explicit annotations, and the axes are not yet coupled to linearity/uniqueness.
Matthew Dempsky (@mdempsky)Add rotate instructions, primitives, and functions
Rotate!
Nick Barnes (@NickBarnes)Add support for annotating parameters as contractive with [@rec]
This PR adds support for a [@rec] annotation on type parameters to indicate that the parameter is contractive. If a type constructor t is contractive then a recrusive type like:
Leo White (@lpw25)After compaction, tell malloc to release memory
We use malloc for all blocks > 1 KiB, and for medium sized blocks (between 1 KiB and some system-dependent threshold) that memory will remain on the C heap indefinitely after the GC frees it. Compaction should probably attempt to return that memory to the OS. This does so both for TCMalloc (detected via a weak symbol) and for glibc malloc (using malloc_trim …
Nick Barnes (@NickBarnes)Allocation Mode Axis
Add Allocation mode axis to analyze whether a function allocates on heap.
zhizhuoxinAllow -instantiate to take argument compilation unit names
Follow-up to #7331, which moved argument block metadata into .cmis.
Zesen Qian (@riaqn)Allow bodies of `if`s without `else`s to have type `unit#`
Not ready for review. Testing internally.
James Rayman (@jra4)Allow generalized sort variables in module representation
Previously transl_module_representation would fatal_error upon encountering a generalized sort variable, so code like this would error out:
Joe Kerrigan (@joe-kerrigan)Allow non-`value` optional arguments
Follow-up to #5462.
Luke Maurer (@lukemaurer)Apply modality to the base of the curry mode in the parser and printer
When parsing 'a @ m1 -> 'b -> 'c @@ m2 in a signature, the implicit curry mode was constructed as the join between m1 and legacy, ignoring the value's modality m2. For
ainageorgesAutomatically generate an `expect_asm` test for every scalar primitive
James Rayman (@jra4)Avoid useless copies of functions (Again)
This is a revert of #7457 which reverted #7437
Pierre Chambart (@chambart)Avoid useless copies of the same function produced when simplifying functions with no benefits
This is a safe first step for some speculative specialization, but we could go further and use the same kind as heuristic as inlining.
Pierre Chambart (@chambart)Avx512 intrinsics
(wip)
Max Slater (@TheNumbat)Bidirectional type checking for applications
Import ocaml/ocaml#285. Fix some metaprogramming issue?
dkalinichenko-jsBring back JSOO changes for JSIR
This PR brings back changes that were made to external/js_of_ocaml to support ingesting JSIR, that was erased in #7071 . The ocamlj pipeline is not yet expected to work with this version of JSOO, as the Flambda and JSOO implementations have drifted since these original changes. This will be addressed in subsequent PRs.
Leo Lee (@smjleo)Bug fix: uniform behavior for generalize structure optimization
This PR is part of a stacked PR for mode polymorphism parsing.
ainageorgesBump magic number for ox11
Title
Max Slater (@TheNumbat)