Repository activity
40458 results across all weeks
Overhaul of sort variable levels
Unsound layout polymorphism is abound, because levels of sort variables are not correctly tracked, and they could generalise via let poly_ at semi-arbitrary points.
Jakub Bachurski (@jbachurski)Peephole on tag_int(x lsr n): make #int array length primitive as good as standard array length
There was a missing peephole optimisation for this primitive.
Pierre Chambart (@chambart)Prevent abstract kinds from escaping their scope
This implements raising Escape errors for Jkinds, just like for types.
Jakub Bachurski (@jbachurski)Printing and hiding a mode polymorphic curry mode
This PR makes the following changes to the printer of mode polymorphic variables, all related to curry mode:
ainageorgesProduce structured mode diagnostics
This PR introduces the diagnsotics/ directory, which consumes errors in the compiler and produces "structured diagnostics".
Gavin Gray (@gavinleroy)Reaper graph summaries
Nathanaëlle Courant (@Ekdohibs)Reaper: answer rebuild's queries at solve time
This PR introduces an optimization in the reaper: it precomputes the queries asked at build time. That is, the datalog queries the rebuild needs are recorded during traversal, run in bulk once the fixpoint is solved, and captured as plain values. [Rebuild_solution] packages the query results with the unboxing decisions and code changes. The rebuild consumes …
Simon Spies (@spiessimon)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: keep unboxed fields in a fixed traversal order
This PR materializes the order in which we traverse unboxed fields in preparation for link-time optimization. The reason is that fields are hash consed, so if we serialize and then deserialize fields, we are not guaranteed the same ids. By fixing the order, we can be sure that rebuilt parameters and arguments agree with code metadata on the order of fields.
Simon Spies (@spiessimon)Reaper: read result arities from the code metadata
This PR removes result arity as an accumulator field in traverse_acc.ml, because the information is already in the code metadata.
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)Recompute `value_kind`s for records with `any`-fields
Compute better value_kinds for records containing any in value_kind_record. This improves codegen for records with any-fields.
Ryan Tjoa (@rtjoa)Record compiler profiling in Dune action traces
Liam Stevenson (@liam923)Record scannable axes on sort 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)Record synchronized Merlin import for module type implementations
Second branch for the module type implementations worktree. external/merlin/scripts/import-ocaml-source.sh reported that Merlin was already synchronized, so this layer contains only the administrative synchronization commit.
Gavin Gray (@gavinleroy)Record synchronized Merlin import for strength analysis
Second branch for the strength analysis worktree. external/merlin/scripts/import-ocaml-source.sh reported that Merlin was already synchronized, so this layer contains only the administrative synchronization commit.
Gavin Gray (@gavinleroy)