hc-wasmer-compiler-llvm

Crates.iohc-wasmer-compiler-llvm
lib.rshc-wasmer-compiler-llvm
version4.3.6-hc.1
sourcesrc
created_at2024-08-27 21:41:34.828956
updated_at2024-08-28 17:30:37.752241
descriptionLLVM compiler for Wasmer WebAssembly runtime
homepagehttps://wasmer.io/
repositoryhttps://github.com/wasmerio/wasmer
max_upload_size
id1353857
size747,510
Core Dev (github:holochain:core-dev)

documentation

https://docs.rs/wasmer-compiler-llvm/

README

wasmer-compiler-llvm Build Status Join Wasmer Slack MIT License crates.io

This crate contains a compiler implementation based on the LLVM Compiler Infrastructure.

Usage

use wasmer::{Store, EngineBuilder};
use wasmer_compiler_llvm::LLVM;

let compiler = LLVM::new();
let mut store = Store::new(compiler);

Note: you can find a full working example using LLVM compiler here.

When to use LLVM

We recommend using LLVM as the default compiler when running WebAssembly files on any production system, as it offers maximum peformance near to native speeds.

Requirements

The LLVM compiler requires a valid installation of LLVM in your system. It currently requires LLVM 15.

You can install LLVM easily on your Debian-like system via this command:

wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh
sudo bash /tmp/llvm.sh 15

Or in macOS:

brew install llvm@15

Or via any of the pre-built binaries that LLVM offers.

Commit count: 17039

cargo fmt