Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C backend : preparatory work #235

Merged
merged 17 commits into from
Apr 4, 2022
Merged

C backend : preparatory work #235

merged 17 commits into from
Apr 4, 2022

Conversation

denismerigoux
Copy link
Contributor

@denismerigoux denismerigoux commented Mar 21, 2022

Implements groundwork for #204.

High-level changes

This PR performs some cleaning of the generated Python code, and creates a prototype for closure conversion that is not yet working. To make closure conversion work properly, we need more structure at the level of Lcalc. Before brining this structure to Lcalc, we need to clean up the Dcalc binded representation and factor things up.

Changelog

  • Implements some optimizations and prettyfication of the Scalc backend
  • Implement closure conversion prototype
  • Make the scope let-binding structure default in Dcalc
  • Bring the scope let-binding structure down to LCalc
  • Bring the scope let-binding structure down to SCalc
  • Debug closure conversion and minimize the amount of conversions.

@denismerigoux denismerigoux changed the title C backend C backend : preparatory work Mar 23, 2022
@denismerigoux denismerigoux marked this pull request as ready for review April 4, 2022 15:53
@denismerigoux
Copy link
Contributor Author

I'm merging this now since it"s already quite big and I will do more refactoring before implementing the closure conversion proper.

@denismerigoux denismerigoux merged commit c4d031d into master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant