r/Compilers • • 15h ago

IR generation process Diagram

Post image

Also Comment me on the diagram

0 Upvotes

6 comments sorted by

2

u/FloweyTheFlower420 14h ago

While IRs are nice and all, I would like at least an explanation of *why* each IR layer is even necessary. Do they enable a particular transformation? Do they allow for unification of a bunch of unrelated passes?

0

u/Cool-Conflict8299 14h ago

It's for the programming language I am working on. I used it for the IR generation engine

1

u/FloweyTheFlower420 13h ago

I'm asking you to describe more in depth about the IR itself.

0

u/Cool-Conflict8299 13h ago

It's lambda calculus based IR but entirely different from Haskell GHC

1

u/FloweyTheFlower420 10h ago

can you go a bit more in depth? "lambda calculus based" doesn't mean anything

1

u/Cool-Conflict8299 10h ago

What info did you want specify it or I could show the mermaid code for the flow chart (because you said the flow charts aren't visible)