Skip to main content

Module branded

Module branded 

Source
Expand description

Lifetime-branded references to things manipulated by the LLVM bindings.

Re-exportsΒ§

use std::marker::PhantomData; πŸ”’
use std::fmt; πŸ”’
use std::ptr; πŸ”’

StructsΒ§

Attribute πŸ”’
Corresponds to LLVMAttributeRef.
Context πŸ”’
Corresponds to LLVMContextRef.
FunctionSignature πŸ”’
Module πŸ”’
Corresponds to LLVMModuleRef.
Type πŸ”’
Corresponds to LLVMTypeRef.
Value πŸ”’
Corresponds to LLVMValueRef.

FunctionsΒ§

wrap_llcx πŸ”’ ⚠
Converts an unbranded pointer-to-context to a lifetime-branded Context.
wrap_llmod πŸ”’ ⚠
Converts an unbranded pointer-to-module to a lifetime-branded Module.

Type AliasesΒ§

PhantomInvariantLifetime πŸ”’
FIXME(Zalathar): Use the stdlib’s PhantomInvariantLifetime when its API is settled.

Foreign TypesΒ§

AttributeRaw πŸ”’
Pointee type of the raw pointer wrapped by Attribute.
ContextRaw πŸ”’
Pointee of the raw pointer that is wrapped by a lifetime-branded Context.
ModuleRaw πŸ”’
Pointee of the raw pointer that is wrapped by a lifetime-branded Module.
TypeRaw πŸ”’
Pointee type of the raw pointer wrapped by Type.
ValueRaw πŸ”’
Pointee type of the raw pointer wrapped by Value.