[LLVMdev] Values have no names when generating *.ll files in clang and llvm 2.8 ?

Eli Friedman eli.friedman at gmail.com
Wed Oct 13 11:38:04 PDT 2010


On Wed, Oct 13, 2010 at 4:29 AM, Xinfinity <xinfinity_a at yahoo.com> wrote:
>
> Hello,
>
> I upgraded to llvm 2.8 and when I generate *.ll files from C/C++ with
> clang -S -emit-llvm I obtain a *.ll file in which instructions and
> basicblocks have no names.
> I tried as well compiling with the -g option, but no names were given.
>
> In the release notes it is indicated to use "--show-annotations"  to print
> the number of uses. Is there something similar for assigning names to
> values, as in the previous llvm versions?

opt -instnamer will assign names to a given LLVM assembly file.

-Eli




More information about the llvm-dev mailing list