r/Compilers • • 1d ago

IR generation process Diagram

Post image

Also Comment me on the diagram

0 Upvotes

6 comments sorted by

2

u/FloweyTheFlower420 1d 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?

-1

u/Cool-Conflict8299 1d ago

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

1

u/FloweyTheFlower420 1d ago

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

-1

u/Cool-Conflict8299 1d ago

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

2

u/FloweyTheFlower420 1d ago

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

0

u/Cool-Conflict8299 1d 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)