<div dir="ltr"><span style="font-size:12.8px">I am currectly experimenting with -Xclang option.. I have a simple pass (to just print function names).</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I ran: clang -Xclang -load -Xclang LLVMHello.so t.c </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">but nothing was printed, no output from the pass.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">when I run: opt -load LLVMHello.so -hello t.ll</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I get the output from pass (i.e. list of function names)<br><div><br></div><div>Part of the source ode of the Hello pass:</div><div><div> struct Hello : public FunctionPass {</div><div> static char ID; // Pass identification, replacement for typeid</div><div> Hello() : FunctionPass(ID) {}</div><div><br></div><div> bool runOnFunction(Function &F) override {</div><div> errs().write_escaped(F.<wbr>getName()) << '\n';</div><div> return false;</div><div> }</div><div> };</div><div>}</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-09 14:44 GMT+01:00 Dávid Bolvanský <span dir="ltr"><<a href="mailto:david.bolvansky@gmail.com" target="_blank">david.bolvansky@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am currectly experimenting with -Xclang option.. I have a simple pass (to just print function names).<div><br></div><div>I ran: clang -Xclang -load -Xclang LLVMHello.so t.c </div><div><br></div><div>but nothing was printed, no output from the pass.</div><div><br></div><div>when I run: opt -load LLVMHello.so -hello t.ll</div><div><br></div><div>I get the output from pass (i.e. list of function names)<br><div><br></div><div>Part of the source ode of the Hello pass:</div><div><div> struct Hello : public FunctionPass {</div><div> static char ID; // Pass identification, replacement for typeid</div><div> Hello() : FunctionPass(ID) {}</div><div><br></div><div> bool runOnFunction(Function &F) override {</div><div> errs().write_escaped(F.<wbr>getName()) << '\n';</div><div> return false;</div><div> }</div><div> };</div><div>}</div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-03-09 5:38 GMT+01:00 Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi, David,</p>
<p>We do have an infrastructure for incorporating custom AA
providers into the pipeline. I've never tried it, but take a look
at unittests/Analysis/AliasAnalys<wbr>isTest.cpp (that may provide some
of what you need).</p>
<p> -Hal<br>
</p><div><div class="m_7794410119258396750h5">
<div class="m_7794410119258396750m_5156831066415008333moz-cite-prefix">On 03/08/2018 08:52 AM, Dávid Bolvanský
via llvm-dev wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="m_7794410119258396750h5">
<div dir="ltr"><span style="font-size:12.8px">Hello,</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I am currently working with the
implementation of CFL Andersen algorithmand I am trying to do
some improvements to the Andersen algorithm.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I would like to create loadable
module .so and run clang with my e.g. "cfl-anders-improved.so"
to avoid the "long" way - generating IR, running opt with my
improved algorithm to generate optimalized code and then
building it.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Is a such thing even possible for
Alias analyses in Clang?</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Thanks</div>
</div>
<br>
<fieldset class="m_7794410119258396750m_5156831066415008333mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
LLVM Developers mailing list
<a class="m_7794410119258396750m_5156831066415008333moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>
<a class="m_7794410119258396750m_5156831066415008333moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><span class="m_7794410119258396750HOEnZb"><font color="#888888">
</font></span></pre><span class="m_7794410119258396750HOEnZb"><font color="#888888">
</font></span></blockquote><span class="m_7794410119258396750HOEnZb"><font color="#888888">
<br>
<pre class="m_7794410119258396750m_5156831066415008333moz-signature" cols="72">--
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>