]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add declarations for Rust HIR
authorPhilip Herron <philip.herron@embecosm.com>
Fri, 21 Oct 2022 11:44:20 +0000 (13:44 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:04 +0000 (14:00 +0100)
commit8ad1d56d68a998fdc662a944f461e7bcb125920e
tree1b63caef7fb0d557c9aa64c9783202f26646e5c5
parent85a8fe00f805e7889b4e67a98ae1d435c042166b
gccrs: Add declarations for Rust HIR

This patch contains the declarations needed for our second intermediate
representation, which we will refer to as an HIR.

This gives the front-end a chance to desugar much of the AST, such as:
- Removing distinction between functions and methods
- Removing Macros
- Removing IdentifierExprs
- Removing duplicate attribute structures

gcc/rust/
* hir/tree/rust-hir-expr.h: New.
* hir/tree/rust-hir-item.h: New.
* hir/tree/rust-hir-path.h: New.
* hir/tree/rust-hir-pattern.h: New.
* hir/tree/rust-hir-stmt.h: New.
* hir/tree/rust-hir-type.h: New.
gcc/rust/hir/tree/rust-hir-expr.h [new file with mode: 0644]
gcc/rust/hir/tree/rust-hir-item.h [new file with mode: 0644]
gcc/rust/hir/tree/rust-hir-path.h [new file with mode: 0644]
gcc/rust/hir/tree/rust-hir-pattern.h [new file with mode: 0644]
gcc/rust/hir/tree/rust-hir-stmt.h [new file with mode: 0644]
gcc/rust/hir/tree/rust-hir-type.h [new file with mode: 0644]