Expand description
This crate contains codegen code that is used by all codegen backends (LLVM and others). The backend-agnostic functions of this crate use functions defined in various traits that have to be implemented by each backend.
Modules§
- assert_
module_ sources  - This pass is only used for UNIT TESTS related to incremental
compilation. It tests whether a particular 
.ofile will be re-used from a previous compilation or whether it must be regenerated. - back
 - base
 - codegen_
attrs  - common
 - debuginfo
 - errors
 - Errors emitted by codegen_ssa
 - meth
 - mir
 - mono_
item  - size_
of_ val  - Computing the size and alignment of a value.
 - target_
features  - traits
 - Interface of a Rust codegen backend
 
Structs§
- Cached
Module 🔒Codegen  - Codegen
Lint Levels  - A list of lint levels used in codegen.
 - Codegen
Results  - Compiled
Module  - Crate
Info  - Misc info we load from metadata to persist beyond the tcx.
 - MemFlags
 - Module
Codegen  - Native
Lib  - Target
Config  - Target-specific options that get set in 
cfg(...). 
Enums§
Constants§
Statics§
- DEFAULT_
LOCALE_ RESOURCE  - Raw content of Fluent resource for this crate, generated by 
fluent_messagesmacro, imported byrustc_driverto include all crates’ resources in one bundle. 
Functions§
- looks_
like_ rust_ object_ file  - Checks if the given filename ends with the 
.rcgu.oextension thatrustcuses for the object files it generates. - provide