gccrs: borrowck: Create BIR builders (visitors)
commitf88934b5c85c6ce9fcd14dedbd33b4ca3d541a2e
authorJakub Dupak <dev@jakubdupak.com>
Wed, 18 Oct 2023 18:43:17 +0000 (18 20:43 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:27 +0000 (16 19:09 +0100)
treef1da1ab90b78948ee01296e36b6e97bc2a6d92c2
parentdbd29204ef8cb9bd0b5767196cd72a9cacece831
gccrs: borrowck: Create BIR builders (visitors)

gcc/rust/ChangeLog:

* Make-lang.in: Compile BIR expr visitor.
* checks/errors/borrowck/rust-borrow-checker.cc (BorrowChecker::go): Use BIR builder.
* rust-session-manager.cc (Session::compile_crate): Run borrow checker.
* checks/errors/borrowck/rust-bir-builder-expr-stmt.cc: New file.
* checks/errors/borrowck/rust-bir-builder-expr-stmt.h: New file.
* checks/errors/borrowck/rust-bir-builder-internal.h: New file.
* checks/errors/borrowck/rust-bir-builder-lazyboolexpr.h: New file.
* checks/errors/borrowck/rust-bir-builder-pattern.h: New file.
* checks/errors/borrowck/rust-bir-builder-struct.h: New file.
* checks/errors/borrowck/rust-bir-builder.h: New file.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/Make-lang.in
gcc/rust/checks/errors/borrowck/rust-bir-builder-expr-stmt.cc [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-builder-expr-stmt.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-builder-internal.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-builder-lazyboolexpr.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-builder-pattern.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-builder-struct.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-bir-builder.h [new file with mode: 0644]
gcc/rust/checks/errors/borrowck/rust-borrow-checker.cc
gcc/rust/rust-session-manager.cc