<div dir="ltr"><div>The PassManagerBuilder that constructs the -O pipelines offers multiple ExtensionPoints at which optimizer plugins can insert themselves into optimizer pipelines.</div><div><br></div><div>Here's how plugins can do this:</div><a href="http://llvm.org/doxygen/structllvm_1_1RegisterStandardPasses.html">http://llvm.org/doxygen/structllvm_1_1RegisterStandardPasses.html</a><br><div><br></div><div>In Polly, you can find the registration part a bit further down in the file you linked: <a href="https://github.com/llvm-mirror/polly/blob/master/lib/Support/RegisterPasses.cpp#L417">https://github.com/llvm-mirror/polly/blob/master/lib/Support/RegisterPasses.cpp#L417</a></div><div><br></div><div>Cheers,</div><div>Philip</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-12 14:20 GMT+02:00 SANJAY SRIVALLABH SINGAPURAM <span dir="ltr"><<a href="mailto:llvmresch_int01@iith.ac.in" target="_blank">llvmresch_int01@iith.ac.in</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I was trying to find out what passes are sequenced after Polly in clang. I need to know this since I'm seeing a difference between the files <font face="monospace">kernel-before.ll</font> and <font face="monospace">kernel.ll</font> generated by the command <font face="monospace">clang -g -O3 -mllvm -polly -mllvm -polly-dump-before -S -emit-llvm</font>, where <font face="monospace">kernel-before.ll</font> is the file received by Polly.</div><div><br></div><div>I assumed that the clang driver registers the Passes just like opt or <a href="https://github.com/JuliaLang/julia/blob/973d926584a39e48d173dc9ec62d2b8908a3c544/src/jitlayers.cpp#L197-L205" target="_blank">Julia</a> does by calling <span style="color:rgb(121,93,163);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">polly::<wbr>registerPollyPasses</span><span class="m_-3687202293426561757inbox-inbox-Apple-converted-space"> </span>( in the <a href="https://github.com/llvm-mirror/polly/blob/master/lib/Support/RegisterPasses.cpp" target="_blank"><polly_src>/lib/Support/<wbr>RegisterPasses.cpp</a> ). But, it was a surprise to not find a call to <span style="color:rgb(121,93,163);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap">registerPollyPasses</span><span class="m_-3687202293426561757inbox-inbox-Apple-converted-space"> inside clang.</span></div><div><span class="m_-3687202293426561757inbox-inbox-Apple-converted-space"><br></span></div><div><span class="m_-3687202293426561757inbox-inbox-Apple-converted-space">Summarising,</span></div><div><ul><li>How is Polly called from Clang ?</li><li>What are the Passes sequenced after Polly ?</li></ul><div>Thanks,</div></div><div>Sanjay</div></div><span class="HOEnZb"><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "Polly Development" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:polly-dev+unsubscribe@googlegroups.com" target="_blank">polly-dev+unsubscribe@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
</font></span></blockquote></div><br></div>