[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR

Caldarale, Charles R Chuck.Caldarale at unisys.com
Tue Apr 9 10:49:17 PDT 2013


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Dong Chen
> Subject: Re: [LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR

> but you konw that "dump()" instruction can print "%4" in the screen and each
> time print the same name "%4" not "%5" or "%6" for the same unnamed value.

That the symbols are the same each time is a characteristic of what you're doing, not of LLVM itself.  The symbols are only generated for printing, and are not an attribute of the underlying Instruction object.  Running additional optimization passes after a first printing will usually change the generated number, as instructions are removed, reordered, and coalesced.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.





More information about the llvm-dev mailing list