diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-08-23 16:20:05 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-12-13 14:00:05 +0100 |
commit | 7999cf327de7b5bbea80046715eeb00c0755a08d (patch) | |
tree | d3790130333dee5663b2c20a30b3472d01b296d2 /gcc/rust/backend | |
parent | 7641eaead409ad3a80b6c92900199af352549fe4 (diff) | |
download | gcc-7999cf327de7b5bbea80046715eeb00c0755a08d.zip gcc-7999cf327de7b5bbea80046715eeb00c0755a08d.tar.gz gcc-7999cf327de7b5bbea80046715eeb00c0755a08d.tar.bz2 |
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.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions