-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flambda-backend: Support layout annotations (#1417)
* Add layout annotations to the language. This commit also includes various improvements to jane-syntax. Documentation coming in a separate commit. This commit has been rebased to include the following commits: Pprintast now depends on Printast Initial implementation of layout annotations This was taken from ccasin/ocaml-jst#1, but rebased and cleaned. There are a handful of failing tests, still, but they're all newly introduced in this patch. Rename ~reason to ~context for annotations (only) Move layout annotations into aliases This now prevents e.g. [(int : immediate)] but allows [int as ('a : immediate)], as discussed with the type-systems group. Add control over printing verbosity Move alias over to jane-syntax architecture Move variable layout annotation into jane-syntax Support for annotations on _ Check layout annotation during conversion Handle type parameters uniformly Convert Ptyp_poly to use jane-syntax architecture Comments from Antal Move annotations on extension constructors into JS Combine unboxed constants with other layouts Newtypes are now in jane-syntax. Constructor declarations in jane-syntax Make testsuite pass Some minor cleanup of old XXXs. Some cleanup from review A little cleanup in Jane_syntax from review Fix compilation with dune-based build Incorporate test case from old PR, improving msg Respond to Antal's review More review fixes Move test that now passes Responses to comments rename test Remove "assert false" in favor of "Misc.fatal_error" Add comment about generic parameters transl_type_param_layout --> get_type_param_layout Rename error constructors Remove module that will interfere with merging * Remove call to make_params in enter_type * Keep minimizer compatible * Format chameleon
- Loading branch information
1 parent
455887f
commit 5205836
Showing
99 changed files
with
12,548 additions
and
8,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.