[][src]Crate rustc_codegen_llvm

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

The Rust compiler.

Note

This API is completely unstable and subject to change.

Modules

abi [
Experimental
]
allocator [
Experimental
]
asm [
Experimental
]
attributes [
Experimental
]

Set and unset common attributes on LLVM values.

back [
Experimental
]
base [
Experimental
]

Codegen the completed AST to the LLVM IR.

builder [
Experimental
]
callee [
Experimental
]

Handles codegen of callees as well as other call-related things. Callees are a superset of normal rust values and sometimes have different representations. In particular, top-level fn items and methods are represented as just a fn ptr and not a full closure.

common [
Experimental
]

Code that is useful in various codegen modules.

consts [
Experimental
]
context [
Experimental
]
debuginfo [
Experimental
]
declare [
Experimental
]

Declare various LLVM values.

diagnostics [
Experimental
]
glue [
Experimental
]
intrinsic [
Experimental
]
llvm [
Experimental
]
llvm_util [
Experimental
]
metadata [
Experimental
]
meth [
Experimental
]
mir [
Experimental
]
mono_item [
Experimental
]

Walks the crate looking for items/impl-items/trait-items that have either a rustc_symbol_name or rustc_item_path attribute and generates an error giving, respectively, the symbol name or item-path. This is used for unit testing the code that generates paths etc in all kinds of annoying scenarios.

type_ [
Experimental
]
type_of [
Experimental
]
value [
Experimental
]

Structs

CachedModuleCodegen [
Experimental
]
CodegenResults [
Experimental
]
CompiledModule [
Experimental
]
CrateInfo [
Experimental
]

Misc info we load from metadata to persist beyond the tcx

LlvmCodegenBackend [
Experimental
]
ModuleCodegen [
Experimental
]
ModuleLlvm [
Experimental
]

Enums

ModuleKind [
Experimental
]

Constants

DIAGNOSTICS [
Experimental
]

Functions

__rustc_codegen_backend [
Experimental
]

This is the entrypoint for a hot plugged rustc_codegen_llvm

target_features [
Experimental
]