Major API-incompatible changes include: - Introduce TrapCode::UnreachableCodeReached, used for unreachable in wasm. - cranelift-wasm's `declare_signature` now takes its signature by value - cranelift-wasm's `declare_table_elements` `elems` parameter now takes a boxed slice - Remove cranelift-wasm's `ModuleEnvironment`'s `get_signature`, `get_num_func_imports`, `get_func_type`, and `get_global`.
This crate provides a straightforward way to create a
Cranelift IR function and fill it with
instructions translated from another language. It contains an SSA construction
module that provides convenient methods for translating non-SSA variables into
SSA Cranelift IR values via use_var and def_var calls.