gccrs: Add base for HIR to GCC GENERIC lowering
authorPhilip Herron <philip.herron@embecosm.com>
Fri, 21 Oct 2022 12:01:04 +0000 (14:01 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:07 +0000 (14:00 +0100)
commit15f04af347e3b65f436808077cbac4fa566019f9
tree32ec5a4c2ca65044848cb37137c1074ed63f5401
parent509e4c32c6a80ede6c6dda0f4cfc96f94d24c4d6
gccrs: Add base for HIR to GCC GENERIC lowering

This pass walks the HIR crate and turns them into GCC `tree`s. We do not have
any Rust specific tree's. We are slowly removing the backend abstraction
which was ported over from gccgo in favour of using `tree`s directly.

gcc/rust/
* backend/rust-builtins.h: New.
* backend/rust-compile-base.cc: New.
* backend/rust-compile-base.h: New.
* backend/rust-mangle.cc: New.
* backend/rust-mangle.h: New.
* backend/rust-tree.cc: New.
* backend/rust-tree.h: New.
* rust-backend.h: New.
* rust-gcc.cc: New.

Co-authored-by: David Faust <david.faust@oracle.com>
gcc/rust/backend/rust-builtins.h [new file with mode: 0644]
gcc/rust/backend/rust-compile-base.cc [new file with mode: 0644]
gcc/rust/backend/rust-compile-base.h [new file with mode: 0644]
gcc/rust/backend/rust-mangle.cc [new file with mode: 0644]
gcc/rust/backend/rust-mangle.h [new file with mode: 0644]
gcc/rust/backend/rust-tree.cc [new file with mode: 0644]
gcc/rust/backend/rust-tree.h [new file with mode: 0644]
gcc/rust/rust-backend.h [new file with mode: 0644]
gcc/rust/rust-gcc.cc [new file with mode: 0644]