gccrs: Add HIR to GCC GENERIC lowering entry point
authorPhilip Herron <philip.herron@embecosm.com>
Fri, 21 Oct 2022 12:29:50 +0000 (14:29 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:07 +0000 (14:00 +0100)
commitcfbda2f78baac4f329efe1838401b4ae2ed5b6a5
tree63d04c0e9b01fe40f25380329f5801707583db1b
parent019b2f15581948806ee14a6d05b09ec94f04c966
gccrs: Add HIR to GCC GENERIC lowering entry point

This patch contains the entry point and utilities used for the lowering
of HIR nodes to `tree`s. It also contains a constant evaluator, ported
over from the C++ frontend.

gcc/rust/
* backend/rust-compile-context.cc: New.
* backend/rust-compile-context.h: New.
* backend/rust-compile.cc: New.
* backend/rust-compile.h: New.
* backend/rust-constexpr.cc: New.
* backend/rust-constexpr.h: New.

Co-authored-by: David Faust <david.faust@oracle.com>
Co-authored-by: Faisal Abbas <90.abbasfaisal@gmail.com>
Signed-off-by: Faisal Abbas <90.abbasfaisal@gmail.com>
gcc/rust/backend/rust-compile-context.cc [new file with mode: 0644]
gcc/rust/backend/rust-compile-context.h [new file with mode: 0644]
gcc/rust/backend/rust-compile.cc [new file with mode: 0644]
gcc/rust/backend/rust-compile.h [new file with mode: 0644]
gcc/rust/backend/rust-constexpr.cc [new file with mode: 0644]
gcc/rust/backend/rust-constexpr.h [new file with mode: 0644]