evelina dumitrescu via llvm-dev
2016-Mar-02 18:51 UTC
[llvm-dev] Determine at runtime the value of operands
Hi, I am a newbie to llvm. I work on a project that instruments an application to extract some statistics, such as memory or instruction patterns. I have a question about how can I determine at runtime the value stored in the operands of an expression. For the following C code and LLVM IR, how can I determine the value of the argc variabile at runtime? if (argc == 1) { } else { } %cmp.i = icmp eq i32 %argc, 1 br i1 %cmp.i, label %f.exit, label %if.else.i Thank you, Evelina -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160302/596a44a8/attachment.html>