Files
rust/src/librustc_codegen_llvm
Nikita Popov a5c3956a75 Don't add extra passes into the function pass manager
Exception for specific cases like linting, additional passes should
be going into the module pass manager (even if they are function
passes). The separate function pass manager is only used for very
early optimization passes.

Rather than apparending passes to the MPM, use the OptimizerLast
and EnabledOnOptLevel0 pass manager builder extension hooks, which
allow adding passes directly before finalization (alias
canonicalization and name-anon-globals).

The main effect and purpose of this change is to add sanitizer
passes at the end of the pipeline, which is where they belong.
In LLVM 9 the address sanitizer can't be used as a pass in the
early function pass manager, because it has a dependence on a
module-level analysis pass.
2019-07-15 09:45:14 +02:00
..
2019-06-15 20:46:00 +09:00
2019-07-09 21:55:29 +02:00
2019-06-14 18:58:23 +03:00
2019-07-03 10:01:02 +02:00
2018-12-25 21:08:33 -07:00
2019-07-07 03:23:00 +02:00
2019-07-09 21:55:29 +02:00
2019-07-09 21:55:29 +02:00
2019-07-07 09:32:36 +02:00
2018-11-26 15:03:13 -06: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.