<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">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">polly::registerPollyPasses</span><span class="inbox-inbox-Apple-converted-space"> </span>( in the <a href="https://github.com/llvm-mirror/polly/blob/master/lib/Support/RegisterPasses.cpp"><polly_src>/lib/Support/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">registerPollyPasses</span><span class="inbox-inbox-Apple-converted-space"> inside clang.</span></div><div><span class="inbox-inbox-Apple-converted-space"><br></span></div><div><span class="inbox-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>