Repository activity
40458 results across all weeks
Fix pattern matching bug for some unboxed types
As mentioned in #7450 and #8118 , Parmatch.le_pat and Parmatch.lub were missing some unboxed-types related cases, which could potentially cause miscompilation. This adds the missing cases, and eliminates the wildcard patterns that made the bug easy to write.
Chris Casinghino (@ccasin)Fix projections from non-`value` `[@@unboxed]` inline records
For a [@@unboxed] inline-record constructor, the jkind on the declaration and the sort on the constructor are incorrectly always value, causing errors for programs such as:
Ryan Tjoa (@rtjoa)Fix rdpmc results allocated to rdx
As per title; the fix is to factor out the codes
Xavier Clerc (@xclerc)Fix types for tags in variant unboxing
Straightforward fix:
Vincent Laviron (@lthls)Fix typo in CI job (backend)
The current parameter does not exist,
Xavier Clerc (@xclerc)Fix: less eager forcing of addresses during typing
In #7833, I sought to relax the restriction that module signatures contain only
Joe Kerrigan (@joe-kerrigan)Flambda 2: compile instantiations of templates as code without closures
The code of an instantiation of a template ([Lambda.Lcode]) has no free
Jack Rickard (@Skepfyr)Flambda 2: export the types of templates' environments
The type of a template's environment, recorded at its definition as the
Jack Rickard (@Skepfyr)Flambda 2: optimise instantiations using their template's environment
Closure conversion now compiles [Ptemplate_env] as the allocation of the
Jack Rickard (@Skepfyr)Float32.of_string mis-rounds hexadecimal subnormals
Hexadecimal subnormals come out one ulp away from the correctly rounded value, and for 0x1000001p-174 a positive nonzero literal becomes +0.0:
KC Sivaramakrishnan (@kayceesrk)Generate the laws of functors
Building on #8063, this PR adds support for functors with laws inside of them. It does not currently support generative functors.
Simon Spies (@spiessimon)Give generic arrays dynamic size
A let rec-bound array literal whose element type is not statically known (Pgenarray) is classified as Static, so it is pre-allocated with caml_alloc_dummy as an ordinary scannable block and filled in later by caml_update_dummy. If the elements turn out to be floats, the update retags the block as Double_array_tag and stores unboxed floats in it. This can cau…
Nick Barnes (@NickBarnes)Grow the mark stack when compression cannot make room
realloc_mark_stack can return without making room on the mark stack. mark_stack_push_range then writes past the end of the stack, and keeps doing so on every later push, because it only reallocates when count == size.
Nick Barnes (@NickBarnes)Hide irrelevant type leaves in subsumption errors
Subsumption errors are currently very verbose. The general shape of a subsumption error is as follows:
ainageorgesHide modes when irrelevant in subsumption errors
Subsumption error messages are currently very verbose: they print the full type of the subject and pattern, including a lot of details that might be irrelevant to the current subsumption error. For example, when a subsumption error is about types rather than modes it is not useful to print the modes of that particular function. This is especially important …
ainageorgesIdentify the CFG entry explicitly in CSE
After https://github.com/oxcaml/oxcaml/pull/7836 guarantees no dead trap
Xavier Clerc (@xclerc)Ignore debuginfos when comparing terms unless dwarf may alter codegen
Fixes #8111
Basile Clément (@bclement-ocp)Implement `-Hx`, `-open-cmi-x`, and friends
-Ix tells the compiler about the include path for a direct dependency, promising that the *.cmx files are present for static evaluation. (If you pass -I instead, the compiler marks modules dynamic so they cannot be used statically.)
Joe Kerrigan (@joe-kerrigan)Improve the slambda value missing error messages
This adds locations and a reason to all the slambda value missing error messages, which should make them easier to debug.
Jack Rickard (@Skepfyr)Improve unboxed assignment errors
Currently, if we try to assign to a mutable field of an unboxed record, we get an error that blames the boxedness and not the mutability. This can be confusing, especially for new users of these features.
Zack Eisbach (@zackbach)