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

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.
LLVM’s Module::ModFlagBehavior, defined in llvm/include/llvm/IR/Module.h.
LLVMRustLinkage
LLVMRustMemoryEffects
LLVMMetadataType
LLVMRustOptStage
LLVMRustPassBuilderOptLevel
LLVMRealPredicate
LLVMRelocMode
LLVMThreadLocalMode
LLVMTypeKind
LLVMUnnamedAddr

Constants

Functions

Creates a legacy pass manager – only used for final codegen.
Data layout. See Module::getDataLayout.
Add LLVM module flags.
See Module::setModuleInlineAsm.
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.
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