<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 4/19/15 12:09 PM, Jingyue Wu wrote:<br>
</div>
<blockquote
cite="mid:CAMROOrGLwTXZXP-bJ=0cW9k6hhf7bXoZKDrrPG+0jhZXhCusQQ@mail.gmail.com"
type="cite">
<div dir="ltr">I'm not aware of such analyses in the mainline. <span
style="line-height:1.5;font-size:13.1999998092651px">Did you
try DSAA in the poolalloc project? Also, how precise do you
need the analysis to be? <br>
</span></div>
</blockquote>
<br>
If you use DSA, I recommend using the analysis in CallTargets.cpp
and using the pass that uses TD instead of EQTD.<br>
<br>
As an FYI, I recently discovered that DSA (but not poolalloc)
mainline compiles with LLVM mainline (thanks Will Dietz!). On
<a class="moz-txt-link-freetext" href="https://github.com/jtcriswell/llvm-dsa">https://github.com/jtcriswell/llvm-dsa</a>, I have the LLVM tree and the
poolalloc tree set up to compile LLVM and DSA. If you look at the
source code for CallTargetMarker in
<a class="moz-txt-link-freetext" href="https://github.com/jtcriswell/llvm-dsa/blob/master/projects/poolalloc/lib/DSA/CallTargets.cpp">https://github.com/jtcriswell/llvm-dsa/blob/master/projects/poolalloc/lib/DSA/CallTargets.cpp</a>,
you'll see what you need to do to get the targets of an indirect
function call.<br>
<br>
If you have any questions, please let me know.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<blockquote
cite="mid:CAMROOrGLwTXZXP-bJ=0cW9k6hhf7bXoZKDrrPG+0jhZXhCusQQ@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Sat, Apr 18, 2015 at 5:20 PM Xin Tong
<<a moz-do-not-send="true" href="mailto:trent.tong@gmail.com">trent.tong@gmail.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I see when LLVM builds the CallGraph SCCs. a function calling
through<br>
a function pointer is conservatively assumed to call internal
and<br>
external functions. Therefore, it has an edges pointing to the<br>
externalnode2, ie. the externalnode representing outgoing
calls from<br>
this module.<br>
<br>
does LLVM have any function pointer analysis capabilities in
the mainline ?<br>
<br>
Thanks,<br>
-Trent<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu"
target="_blank">LLVMdev@cs.uiuc.edu</a> <a
moz-do-not-send="true" href="http://llvm.cs.uiuc.edu"
target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote>
</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>
<br>
<pre class="moz-signature" cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
</body>
</html>