Repository activity
40458 results across all weeks
Reaper: carry the solved slot offsets in the rebuild solution
In preparation of link-time optimization, this PR stores the solved slot offsets in the rebuild solution.
Simon Spies (@spiessimon)Reaper: compute slot offsets from explicit inputs
This PR materializes the inputs of the slot offset computation in preparation for link time optimization. It allows us to compute them at traverse time, store them on disk, and then load them for the solve time computation.
Simon Spies (@spiessimon)Reaper: let the traversal know whether the returned value escapes
This PR tweaks an aspect of the reaper's traversal: it conditionalizes whether we want the final return of a compilation unit to be marked as escaping. It is escaping when we run the reaper per compilation unit, but not escaping when the reaper runs for link time optimization.
Simon Spies (@spiessimon)Reaper: record cross-unit call references, resolved before solving
This PR prepares for link-time optimization with the reaper. Specifically, it records calls that cross compilation units, thereby delaying when they are added to the dependency graph. This change will allow us to record the relevant calls at traverse time and then actually connect them at rebuild time.
Simon Spies (@spiessimon)Reaper: run a flat datalog schedule under -reaper-solve
This PR changes the fixpoint iteration schedule when compiling with link-time optimizations. Instead of a two tier schedule, we use a schedule.
Simon Spies (@spiessimon)Reaper: split into staged traverse, solve and rebuild phases
In preparation for link-time optimization, this PR refactors the reaper into traverse, solve, and rebuild stages. This will allow us to run these steps in different ocamlopt processes in the future.
Simon Spies (@spiessimon)Reaper: support rebuilding without typing information
This PR tweaks the rebuild step of the reaper to make its typing environment optional. This is useful for link-time optimization, where there is no need to produce the final typing environment.
Simon Spies (@spiessimon)Recheck constraints after refining parameters from manifests
Reject:
dkalinichenko-jsRecord compiler profiling in Dune action traces
Liam Stevenson (@liam923)Record scannable axes on const layout's vars
Save scannable axes on Jkind.Layout.Const.t's Genvar and Univar variants so that when we save and reload from cmis we don't lose this info and have to assume things.
Jack Rickard (@Skepfyr)Reduce frametable startup delay
At process startup we allocate and initialize a hash table with an entry to every frametable descriptor. This hashtable is large (16 bytes per descriptor; around 20% of object code size) and both allocation and initialization are slow (154 ms on a sample executable with 2 million descriptors). This PR makes three separate changes in three commits to speed it…
Nick Barnes (@NickBarnes)Refactor hand-written print functions
This refactors a bit of printing code that is common to a lot of printers for flambda2 structures into separate functions in the Misc module, that can be called to simplify the writing of printing function, especially those that print a list of fields.
Guillaume Bury (@Gbury)Refactor lowering and add expect_asm tests for lowering of index-like atomic primitives
We currently expose three Lambda primitives for each atomic operation on block
Joe Kerrigan (@joe-kerrigan)Refactor: `Void`s in `lambda.layout`s
Today, void layouts are translated into Lambda as nullary products. Some consumers of such nullary Lambda products (like copy_mixed_block_element) did not special-case them when they should have. As a result, the representation of voids was inconsistent on bytecode—they were usually represented as immediates, but sometimes as empty blocks.
Zack Eisbach (@zackbach)Refactor: prepare typetexp and typemode for mode variables
This PR is part of a stacked PR for mode polymorphism parsing.
ainageorgesRemove elf notes on macOS
Mach-O doesn't support ELF notes, so we ifdef them out. These are intended for use in magic-trace, which only supports Linux.
Max Slater (@TheNumbat)Remove mask instruction from String.length
Strings never have mixed-block bits set in their header words, so can skip an instruction to mask them out.
Nick Barnes (@NickBarnes)Remove repr transl functions from typeopt
This moves a bunch of transl functions out of Typeopt and into a new Translrepr module. The goal here is to keep Typeopt purely for optimisations and leaving the bulk of transl in dedicated modules.
Jack Rickard (@Skepfyr)Remove the runtime_stdlib build phase
This patch removes the runtime_stdlib context, instead building the runtime and stdlib in the boot phase. This improves parallelism, allows live rebuilds of the runtime and stdlib (make hacking) and is part of for some work in progress to speed up the dev cycle.
Stephen Dolan (@stedolan)Rename cast constructors in Cmm
Renaming constructors such as Int_of_value to Int64_of_value disambiguates between tagged ints and int64s. This is done ahead of adding cast operations between naked ints of different widths, and cast operations for tagging/untagging ints.
James Rayman (@jra4)