Stop naming instructions with numbered names.

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.
This commit is contained in:
Nick Lewycky
2020-05-19 09:50:57 -07:00
parent 45a83b3239
commit ae6f0dadb2
2 changed files with 657 additions and 1193 deletions

File diff suppressed because it is too large Load Diff