wasmer_compiler_llvm

Trait LLVMCallbacks

source
pub trait LLVMCallbacks:
    Debug
    + Send
    + Sync {
    // Required methods
    fn preopt_ir(&self, function: &CompiledKind, module: &InkwellModule<'_>);
    fn postopt_ir(&self, function: &CompiledKind, module: &InkwellModule<'_>);
    fn obj_memory_buffer(
        &self,
        function: &CompiledKind,
        memory_buffer: &InkwellMemoryBuffer,
    );
}
Expand description

Callbacks to the different LLVM compilation phases.

Required Methods§

source

fn preopt_ir(&self, function: &CompiledKind, module: &InkwellModule<'_>)

source

fn postopt_ir(&self, function: &CompiledKind, module: &InkwellModule<'_>)

source

fn obj_memory_buffer( &self, function: &CompiledKind, memory_buffer: &InkwellMemoryBuffer, )

Implementors§