[llvm-dev] Determine at runtime the value of operands

evelina dumitrescu via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 2 10:57:39 PST 2016


>
> 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/07f3bcb5/attachment.html>


More information about the llvm-dev mailing list