mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-03 16:09:20 +00:00
LLVM will number instructions if you don't provide a name, so we get %7 instead of %s7 from calling state.var_name(). LLVM doesn't assign the numbers until printing out the LLVM IR as text, which we never do in a normal run of wasmer. If you're editing a .ll text by hand and you're worried about messing up the numbering, use `opt --instnamer` to assign autogenerated names to all numbered instructions.
Wasmer Compiler - LLVM
This is the wasmer-compiler-llvm
crate, which contains a
compiler implementation based on LLVM.