Repository activity
40458 results across all weeks
Bytecode: Deeply copy "unboxed" product fields on creation
This fixes the same bug as in #6123 and #5386 but for record creation.
Zack Eisbach (@zackbach)Bytecode: record optimization hints
Keep some information from Lambda that is lost when compiling to bytecode, so that compilers from bytecode such as wasm_of_ocaml can generate better code. The bytecode itself is unchanged: the hints are a list of (code offset, hint) pairs stored in a new section of .cmo files, after the debugging information. They are copied by the librarian and the packager…
Jérôme Vouillon (@vouillon)Change most stdlib/built-in parameterised types to take `any`
Do for the rest of stdlib what #5462 did for option. The only real difficulty is ref, which we access using externals rather than OCaml syntax.
Luke Maurer (@lukemaurer)Clean #includes in the runtime
Three commits to improve the hygiene of #includes in the runtime:
Nick Barnes (@NickBarnes)Cmm int casts
Add Tagged_int_of_int64, Int64_of_tagged_int, and Int_conv constructors to Cmm.static_cast. Int_conv represents conversions between naked integers, and Int64_of_tagged_int and Int_conv take a signedness.
James Rayman (@jra4)Cmm: Track the bit length of narrow loads
Cmm_helpers.max_signed_bit_length now knows the width of byte, 16-bit and 32-bit loads, so asr_int can cancel (x lsl n) asr n when x is such a load.
Ryan Tjoa (@rtjoa)Cohorts for deduplicating layout-polymorphic instances at link time
Introduces the high-level concept of a cohort: a collection of
Luke Maurer (@lukemaurer)Compute likelihood information on switches
Note: this includes #7361
Basile Clément (@bclement-ocp)Confine tick requests to one domain
Domain.Tick.t is supposed to represent a tick request on a particular domain, but currently you can acquire it on one domain and release it on another. There are two issues: first, it crosses portability, and second, you can suspend and resume the current fiber between the acquire and release.
Max Slater (@TheNumbat)Constrain with-bound type variables during unification
I'm not sure we should do this
dkalinichenko-jsCopy propagation for linscan and greedy allocators
This pull request implements a basic variant
Xavier Clerc (@xclerc)DRAFT: Make module aliases opaque to modes
A module alias is not a real member of the enclosing structure; it is more like a type declaration. This PR makes the mode system treat it that way:
Zesen Qian (@riaqn)Delay import of typing environments
Serialized typing environments are effectively maps from names to types, which we eagerly rename upon import of cmx files. We often only look up only a small fraction of the equations present in the typing env, but still pay the cost for importing it in full.
Basile Clément (@bclement-ocp)Delay template capture computation to slambda eval
Lkindtemplate and Ltemplate no longer carry an explicit environment of captured variables. Instead, slambda works out a template's captures from its free variables when it evaluates the template. It uses layouts recorded in its environment, and the closure is allocated with the function's own mode. Notably getting the layouts form the slambda eval environmen…
Jack Rickard (@Skepfyr)Do not inline the closure-creating printf functions
Printf.kfprintf, Format.kfprintf, Format_doc.kfprintf and the related functions allocate a closure capturing the continuation or a buffer, so it cannot be lifted and its code is copied into every call site the function is inlined into. The inlining is reasonable from what the compiler can see, even under less aggressive heuristics (the continuation becomes k…
Mark Shinwell (@mshinwell)Downstream changes from Merlin that improve the performance of the indexer
This PR downstreams two separate PR from ocaml/merlin that improve the memory management for the indexer: ocaml-index. This work is part of the Tarides proposal about "Indexer memory management".
Tim ats (@Tim-ats-d)Enable testing and CI for ocamlj
Summary
Jacob Van Buren (@jvanburen)Export Flambda 2 information for units with no final typing environment
This PR tweaks how typing information is stored in .cmx files in preparation for link-time optimization. Previously, a unit whose top-level module startup code does not return would not emit the normal data (i.e., the identifier table, and the code and offsets reachable from the module symbol) into .cmx files. It does now and only emits the typing environmen…
Simon Spies (@spiessimon)Extend SSA reduce to support moves between blocks
As per title: add a third constructor to reduction,
Xavier Clerc (@xclerc)FDO counters for new FDO implementation
This adds types and utility functions for the pseudo-instrumentation counters to be propagated throughout compilation.
yusumez-js