[LLVMdev] How to extract Left Hand side of Instruction

Andrew Lenharth andrewl at lenharth.org
Thu Apr 15 10:59:20 PDT 2010


On Thu, Apr 15, 2010 at 12:46 PM, ambika <ambika at cse.iitb.ac.in> wrote:
> Hi,
>
> Suppose I have llvm Instruction as :
>
>  %9 = load i32* %b, align 4
>
> and I want to extract the name of temporary value used here ie 9.
> Can any body tell that how can I do that?

Values can be unnamed, they are numbered for convenience.  If they do
have a name, you can call getName() or getNameStr() to find out the
name.

Andrew

> thanks and regards,
> Ambika
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list