<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 1/1/14 11:39 PM, Jin Huang wrote:<br>
</div>
<blockquote
cite="mid:CA+9Fbsyh_a-2Zh5zK4twh6umHwyrk7CRTCDS5zryEO8ViupsQQ@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,
everyone.</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">
I want to writing a Pass to get the variable value while the
program is running ,the basic idea is to insert an STL map in
the program ,and get every value and address a program use
,but whether it's possible to do this by transforming the llvm
IR?</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">I
didn't find any useful functions to get a variable's address
in LLVM IR .It seems that the IR is an SSA form and we can not
get a value's address in compiling time.Is that right? But how
can I dynamically get the variable's value in run time by
writing a Pass ?</div>
</div>
</blockquote>
<br>
The giri project does dynamic tracing of values stored to and loaded
from memory. It stores the trace of memory accesses on disk because
they get very large very quickly. You can either reuse the Giri
code or modify it to suit your purposes.<br>
<br>
Swarup, is there a place where people can download the updated Giri
code that your Google Summer of Code student worked on?<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:CA+9Fbsyh_a-2Zh5zK4twh6umHwyrk7CRTCDS5zryEO8ViupsQQ@mail.gmail.com"
type="cite">
<div dir="ltr">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>