[llvm-dev] LLVM assembly language

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 15 06:11:27 PDT 2018


Hi Mohamed,

(Adding llvm-dev back to record the conversation).

On Fri, 15 Jun 2018 at 13:41, mohamed messelka <m14m at live.fr> wrote:
> We can see that in V5.0 change the the name with numbers %i.017 >>  %3 , %k.016 >> %4 & %add >> %7.
>
> I just want to have the name in .ll file that generated from V5.0, any idea how to fix that?

This is actually a difference between debug and release builds of
LLVM. Release builds are configured to drop all names for efficiency,
but debug builds keep them. So you need to rebuild LLVM with (I think)
-DLLVM_ENABLE_ASSERTIONS=ON.

Of course, the actual IR and names will still be different, and likely
in incompatible ways. The bitcode format is more stable, and LLVM-5.0
should be able to read .bc files generated by LLVM 3.8 (though not the
other way round).

Cheers.

Tim.


More information about the llvm-dev mailing list