[LLVMdev] LLVM help

RAHUL GOYAL rahulgoyal34 at gmail.com
Wed Jun 23 08:17:02 PDT 2010

Sir I am trying to get the constant 2 in instruction y=x+2;
Its intermediate representaton is like %y=add nsw i32 %x , 2
If I use getOperand(2).getName() then I get null string.
How can I get the value 2 ?
Rahul Goyal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100623/21222621/attachment.html>

More information about the llvm-dev mailing list