Files
rust/src/librustc_codegen_llvm
Mark Simulacrum e7ae1b2648 Rollup merge of #51323 - nikic:switch-int-lowering, r=nagisa
Generate br for all two target SwitchInts

Instead of only for booleans. This means that `if let` also becomes a br.

Apart from making the IR slightly simpler, this is supported by FastISel (#4353).
2018-06-03 18:18:05 -06:00
..
2018-05-24 20:46:07 +02:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-24 16:04:39 +02:00
2018-05-17 20:58:28 +01:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-17 15:08:30 +03:00
2018-05-24 20:49:37 +02:00
2018-05-17 15:08:30 +03:00

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc guide.