Repository activity
40458 results across all weeks
Wasm: do not import caml_wrap_exception under WASI
The import was registered by handle_exceptions even under WASI, where it is never called. Once wasm-opt is skipped at --opt 1, the dead import is no longer removed: the WASI runtime does not export this function, so the linker generates a missing-primitive stub for it, whose type ((ref eq) parameter) does not match the import (externref parameter), and linki…
Jérôme Vouillon (@vouillon)Wasm: post-process functions at the end of code generation
The post-processing of function bodies (currently, Initialize_locals, which initializes some locals to keep the validator happy) is now performed on all functions at once, once they have all been generated, rather than right after each function. Passes run at this point can then rely on information about the whole module, and a function can be transformed be…
Jérôme Vouillon (@vouillon)js_of_ocaml: only double-translate functions that may run below an effect handler
Jérôme Vouillon (@vouillon)Add missing license fields to zarith.1.12+ox*
The four zarith.1.12+ox* packages had no license: field, while zarith.1.14+ox in this repository already carries:
James Lee (@jmes2build)dune 3.22.2+ox: build with oxcaml#5462
oxcaml/oxcaml#5462 changed the kind of option's parameter to any, so dune.3.22.2+ox no longer bootstraps on oxcaml main:
Eduardo Souza (@udesou)minus39 failing to build on a fresh macOS 27.0.1
@dra27-js: That's weird, given what's actually on that line: https://github.com/oxcaml/oxcaml/blob/5.2.0minus-39/utils/warnings.ml#L595
Anil Madhavapeddy (@avsm)(WIP, prototype) generate otherlibs dune rules for JSIR
don't review
Leo Lee (@smjleo)Add -reaper-solve: whole-program Reaper solve producing .ltosol files
This PR adds support for executing the solve part of link-time optimization in a separate ocamlopt invocation. That is, when invoked with -reaper-solve -o solution.ltosol a.cmx b.cmx, the compiler will retrieve the reaper data from a.cmx and b.cmx (compiled with -lto-support) and then execute the solve step of the reaper and write the result into solution.lt…
Simon Spies (@spiessimon)Add `Compression` module to ocamlcommon
Taking advantage of the lack of runtime4, this reduces the diff with upstream in a few places by taking upstream's Compression module from ocamlcommon exactly as-is, and simply ensuring that compressed marshalling can never be enabled in OxCaml. It also implements the build system work necessary to support -lcomprmarsh necessary for ocamlcommon.cmxa.
David Allsopp (@dra27)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 prefetching to Patricia trees
(As per title, more benchmarking is needed but it
Xavier Clerc (@xclerc)Add the --standalone flag
Add a --standalone flag to ocaml-index, which will make the output index file be fully standalone. That is, the index will not contain pointers to other indexes, but rather copy the data from its component indexes. This enables the index to be used when the component indexes are not present, which enables some build-rule simplifications.
Liam Stevenson (@liam923)Alloc field order fix
Fixes a bug with the evaluation order of fields in an allocation that (on main) depends on whether the allocation is big (i.e. > max_young_wosize) or small.
Guillaume Bury (@Gbury)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 never-returning functions to return values of layout any
47375ab:
dkalinichenko-jsAllow value_or_null in a `any` record field with [@@unboxed]
Cosmin (@cosmin-pascaru)Avoid useless copies of functions (Again)
This is a revert of #7457 which reverted #7437
Pierre Chambart (@chambart)Bad error message when using [@inlined] on partial application
Consider the following code:
Guillaume Bury (@Gbury)Bidirectional type checking for applications
Import ocaml/ocaml#285. Fix some metaprogramming issue?
dkalinichenko-js