Module rustc_codegen_llvm::llvm[][src]

Re-exports

pub use self::AtomicRmwBinOp::*;
pub use self::CallConv::*;
pub use self::CodeGenOptSize::*;
pub use self::IntPredicate::*;
pub use self::Linkage::*;
pub use self::MetadataType::*;
pub use self::RealPredicate::*;

Modules

A wrapper around LLVM’s archive (.a) code

LLVM diagnostic reports.

Structs

LLVMRustSanitizerOptions

LLVMRustThinLTOModule

Enums

LLVMRustArchiveKind

LLVMRustAsmDialect

LLVMAtomicOrdering

LLVMAtomicRmwBinOp

Matches LLVMRustAttribute in LLVMWrapper.h Semantically a subset of the C++ enum llvm::Attribute::AttrKind, though it is not ABI compatible (since it’s a C++ enum)

LLVM CallingConv::ID. Should we wrap this?

LLVMRustChecksumKind

LLVMRustCodeGenOptLevel

LLVMRustCodeModel

LLVMDLLStorageClass

LLVMRustDiagnosticKind

LLVMRustDiagnosticLevel

LLVMRustFileType

LLVMIntPredicate

Translation of LLVM’s MachineTypes enum, defined in llvm\include\llvm\BinaryFormat\COFF.h.

LLVMRustLinkage

LLVMMetadataType

LLVMRustOptStage

LLVMRustPassBuilderOptLevel

LLVMRustPassKind

LLVMRealPredicate

LLVMRelocMode

LLVMRustSynchronizationScope

LLVMThreadLocalMode

LLVMTypeKind

LLVMUnnamedAddr

Constants

Functions

Creates a function-by-function pass manager

Creates a pass manager.

Disposes a pass manager.

Data layout. See Module::getDataLayout.

Runs a pass manager on a module.

Returns a string describing the last error caused by an LLVMRust* call.

See llvm::LLVMTypeKind::getTypeID.

Prepares inline assembly.

Print the pass timings since static dtors aren’t picking them up.

See Module::setModuleInlineAsm.

Writes a module to the specified path. Returns 0 on success.

Safe wrapper around LLVMGetParam, because segfaults are no fun.

Safe wrapper for LLVMGetValueName2 into a byte slice

Safe wrapper for LLVMSetValueName2 from a byte slice

Type Definitions

Foreign Types