Skip to main content

Crate rustc_codegen_ssa

Crate rustc_codegen_ssa 

Source
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 .o file will be re-used from a previous compilation or whether it must be regenerated.
back
base
codegen_attrs
common
debuginfo
diagnostics
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§

CachedModuleCodegen 🔒
CodegenLintLevelSpecs
A list of lint levels used in codegen.
CompiledModule
CompiledModules
CrateInfo
Misc info we load from metadata to persist beyond the tcx.
EiiLinkageImplInfo
EiiLinkageInfo
MemFlags
This previously had an UNALIGNED variant, but that should never be done via flags. If you want something to be unaligned, see mir::place::PlaceRef::unaligned.
ModuleCodegen
NativeLib
RetagFlags
RetagInfo
SymbolExport
A symbol to make visible from a linked artifact.
TargetConfig
Target-specific options that get set in cfg(...).

Enums§

CodegenError
ModuleKind

Constants§

RLINK_MAGIC 🔒
RLINK_VERSION 🔒

Functions§

provide