3 ms·
Not Rust's (Specifically). LLVM IR is actually quite high level as it is, so you can just use it as is. Compiler IRs are normally not that difficult to impleme
by mhh__ 10y ago
Not Rust's (Specifically). LLVM IR is actually quite high level as it is, so you can just use it as is.
Compiler IRs are normally not that difficult to implement (Designing them is a whole different thing), so it wouldn't be (If a group of devs decided do it) that difficult to define IRs with lowering between each of them. After transforming into a (Approximately C level) IR (Like Cmm in Haskell), you can emit LLVM IR to handle code generation, Register Allocation, LTO etc.