Skip to content

Separate 3-address code and SSA generation#17

Merged
mengzhuo merged 1 commit intoplctlab:mainfrom
AdUhTkJm:main
Jan 23, 2025
Merged

Separate 3-address code and SSA generation#17
mengzhuo merged 1 commit intoplctlab:mainfrom
AdUhTkJm:main

Conversation

@AdUhTkJm
Copy link

Refactored IR generation. Now riscv_generate.ml generates 3-address code (TAC), and a separate file riscv_tac2ssa converts that into SSA form.

I made this change because a side-product of the conversion -- the dominator tree -- facilitates some analyses. Moreover, directly generating SSA from MoonBit core IR is complicated and error-prone.

@mengzhuo mengzhuo merged commit ed167bd into plctlab:main Jan 23, 2025
2 checks passed
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.

2 participants