]> gcc.gnu.org Git - gcc.git/commit
gccrs: Add AST to HIR lowering pass
authorPhilip Herron <philip.herron@embecosm.com>
Tue, 23 Aug 2022 15:20:05 +0000 (16:20 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:05 +0000 (14:00 +0100)
commit7999cf327de7b5bbea80046715eeb00c0755a08d
treed3790130333dee5663b2c20a30b3472d01b296d2
parent7641eaead409ad3a80b6c92900199af352549fe4
gccrs: Add AST to HIR lowering pass

This performs the lowering of the AST to HIR. The interesting piece here is
that we desugar much of the AST as mentioned in the previous pass, but
crucially, we also strip out all code that is "marked-for-strip" which failed
cfg-expansion from the expansion pass. After this, the HIR includes all code
required to compile for this crate.

gcc/rust/
* hir/rust-ast-lower-base.cc: New.
* hir/rust-ast-lower-base.h: New.
* hir/rust-ast-lower-block.h: New.
* hir/rust-ast-lower-enumitem.h: New.
* hir/rust-ast-lower-expr.h: New.
* hir/rust-ast-lower-extern.h: New.
* hir/rust-ast-lower-implitem.h: New.
* hir/rust-ast-lower-item.cc: New.
* hir/rust-ast-lower-item.h: New.
* hir/rust-ast-lower-pattern.cc: New.
* hir/rust-ast-lower-pattern.h: New.
* hir/rust-ast-lower-stmt.h: New.
* hir/rust-ast-lower-struct-field-expr.h: New.
* hir/rust-ast-lower-type.h: New.
* hir/rust-ast-lower.cc: New.
* hir/rust-ast-lower.h: New.
* hir/rust-hir-dump.cc: New.
* hir/rust-hir-dump.h: New.
18 files changed:
gcc/rust/hir/rust-ast-lower-base.cc [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-base.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-block.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-enumitem.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-expr.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-extern.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-implitem.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-item.cc [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-item.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-pattern.cc [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-pattern.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-stmt.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-struct-field-expr.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-type.h [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower.cc [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower.h [new file with mode: 0644]
gcc/rust/hir/rust-hir-dump.cc [new file with mode: 0644]
gcc/rust/hir/rust-hir-dump.h [new file with mode: 0644]
This page took 0.059983 seconds and 5 git commands to generate.