[llvm-dev] Determine at runtime the value of operands
evelina dumitrescu via llvm-dev
llvm-dev at lists.llvm.org
Wed Mar 2 10:51:58 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/596a44a8/attachment.html>
More information about the llvm-dev
mailing list