Modules

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.

Type Definitions

Foreign Types