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

Document HIR structure #1167

Open
rylev opened this issue Jul 4, 2021 · 1 comment
Open

Document HIR structure #1167

rylev opened this issue Jul 4, 2021 · 1 comment
Labels
A-HIR Area: high-level intermediate representation (HIR) C-enhancement Category: enhancement E-hard Difficulty: might require advanced knowledge T-compiler Relevant to compiler team

Comments

@rylev
Copy link
Member

rylev commented Jul 4, 2021

As a follow-up to #17, we still don't seem to document the structure of the HIR. I assume this would entail examining a bit of what specifically makes the HIR different from the AST.

@camelid
Copy link
Member

camelid commented Jul 5, 2021

I assume this would entail examining a bit of what specifically makes the HIR different from the AST.

One of the main differences is that it's desugared. So, for example, the AST has ExprKind::Try for expr?, but the HIR does not.

Another difference is that IIUC macros are fully expanded by the time the HIR is constructed.

@jieyouxu jieyouxu added E-hard Difficulty: might require advanced knowledge A-HIR Area: high-level intermediate representation (HIR) T-compiler Relevant to compiler team C-enhancement Category: enhancement labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-HIR Area: high-level intermediate representation (HIR) C-enhancement Category: enhancement E-hard Difficulty: might require advanced knowledge T-compiler Relevant to compiler team
Projects
None yet
Development

No branches or pull requests

3 participants