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

Introduce structured IR of MtExpr #616

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Introduce structured IR of MtExpr #616

wants to merge 1 commit into from

Conversation

fendor
Copy link
Contributor

@fendor fendor commented Sep 2, 2024

The new IR (Intermediate Representation) introduces a Tree-like structure for the program AST in favour of the unstructured list. This avoids some additional work in the transpiler, as the transpiler no longer needs to figure out what the program AST actually means, at the cost of some additional complexity in the renamer. However, since the complexity has been moved from one point to the other, we end with a nice separation, keeping the transpiler simple and focusing on the individual transpiler, and tucking complexity away into the Renamer phase.

We also improve the Simala backend slightly by utilising the new program AST.

The new IR (Intermediate Representation) introduces a Tree-like
structure for the program AST in favour of the unstructured list.
This avoids some additional work in the transpiler, as the transpiler no
longer needs to figure out what the program AST actually means, at the
cost of some additional complexity in the renamer. However, since the
complexity has been moved from one point to the other, we end with a
nice separation, keeping the transpiler simple and focusing on the
individual transpiler, and tucking complexity away into the Renamer
phase.

We also improve the Simala backend slightly by utilising the new program
AST.
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