[][src]Module rustc_codegen_llvm::declare

🔬 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?

Declare various LLVM values.

Prefer using functions and methods from this module rather than calling LLVM functions directly. These functions do some additional work to ensure we do the right thing given the preconceptions of codegen.

Some useful guidelines:

Functions

declare_cfn [
Experimental
]

Declare a C ABI function.

declare_fn [
Experimental
]

Declare a Rust function.

declare_global [
Experimental
]

Declare a global value.

declare_raw_fn [
Experimental
]

Declare a function.

define_fn [
Experimental
]

Declare a Rust function with an intention to define it.

define_global [
Experimental
]

Declare a global with an intention to define it.

define_internal_fn [
Experimental
]

Declare a Rust function with an intention to define it.

define_private_global [
Experimental
]

Declare a private global

get_declared_value [
Experimental
]

Get declared value by name.

get_defined_value [
Experimental
]

Get defined or externally defined (AvailableExternally linkage) value by name.