rust/src/librustc_codegen_llvm
Mazdak Farrokhzad 292c538265
Rollup merge of #69920 - Centril:hir-cleanup, r=Zoxc
Remove some imports to the rustc crate

- When we have `NestedVisitorMap::None`, we use `type Map = dyn intravisit::Map<'v>;` instead of the actual map. This doesn't actually result in dynamic dispatch (in the future we may want to use an associated type default to simplify the code).

- Use `rustc_session::` imports instead of `rustc::{session, lint}`.

r? @Zoxc
2020-03-18 18:03:44 +01:00
..
back use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
debuginfo use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
llvm use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
abi.rs Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
allocator.rs librustc_codegen_llvm: Use slices instead of 0-terminated strings 2020-03-11 08:10:21 +01:00
asm.rs Rollup merge of #69893 - tmiasko:cstr, r=petrochenkov 2020-03-11 14:03:54 +01:00
attributes.rs use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
base.rs use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
build.rs
builder.rs use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
callee.rs
Cargo.toml Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
common.rs Auto merge of #69986 - JohnTitor:rollup-h0809mf, r=JohnTitor 2020-03-13 19:16:03 +00:00
consts.rs
context.rs use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
declare.rs librustc_codegen_llvm: Use slices instead of 0-terminated strings 2020-03-11 08:10:21 +01:00
intrinsic.rs Rollup merge of #69922 - RalfJung:less-intrinsic, r=oli-obk 2020-03-17 12:16:16 +01:00
lib.rs use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
llvm_util.rs use direct imports for rustc::{lint, session}. 2020-03-16 02:52:06 +01:00
metadata.rs
mono_item.rs
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
type_.rs remove lifetimes that can be elided (clippy::needless_lifetimes) 2020-03-12 20:03:09 +01:00
type_of.rs
va_arg.rs use conditions directly 2020-03-03 03:46:45 +01:00
value.rs

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 dev guide.