rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.52k stars 94 forks source link

Is "parallel-rustc" already usable with cg_clif? #1423

Closed frederikhors closed 1 month ago

frederikhors commented 7 months ago

Just a simple question out of curiosity.

Is https://blog.rust-lang.org/2023/11/09/parallel-rustc.html already usable with cg_clif?

bjorn3 commented 7 months ago

Most of this happens before involvement of the codegen backend. This part should works just fine. The LLVM backend also does translation from MIR to LLVM ir in parallel. cg_clif doesn't yet do the translation from MIR to clif ir in parallel.

bjorn3 commented 1 month ago

Opened https://github.com/rust-lang/rustc_codegen_cranelift/pull/1489 to implement this.