<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>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.<br></div><br>I have a question about how can I determine at runtime the value stored in the operands of an expression.<br></div><br>For the following C code and LLVM IR, how can I determine the value of the argc variabile at runtime?<br></div><div><br></div>if (argc == 1) {<br></div><br>} else {<br><br>}<br><div><div><br> %cmp.i = icmp eq i32 %argc, 1<br> br i1 %cmp.i, label %f.exit, label %if.else.i<br><br></div><div>Thank you,<br></div><div>Evelina<br></div><div><div><div><br></div></div></div></div></div>
</blockquote></div><br></div></div>