<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Mar 11, 2017 at 3:10 AM SANJAY SRIVALLABH SINGAPURAM via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hello,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">One of my Julia programs failed to execute with the following error,</div><div class="gmail_msg"><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,0,102)" class="gmail_msg">DICompileUnit</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,0,136)" class="gmail_msg">not</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>listed<span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,0,136)" class="gmail_msg">in</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>llvm</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">.</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg">dbg</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">.</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg">cu<br class="gmail_msg"></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">!</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,102,102)" class="gmail_msg">11</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">=</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>distinct<span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">!</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,0,102)" class="gmail_msg">DICompileUnit</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">(</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg">language</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>DW_LANG_C89</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">,</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>file</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">!</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,102,102)" class="gmail_msg">3</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">,</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>producer</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,136,0)" class="gmail_msg">"julia"</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">,</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>isOptimized</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,0,136)" class="gmail_msg">true</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">,</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>runtimeVersion</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,102,102)" class="gmail_msg">0</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">,</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg">emissionKind</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,0,102)" class="gmail_msg">FullDebug</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">,</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span>enums</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">:</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250)" class="gmail_msg"><span class="m_8456303539485030679inbox-inbox-Apple-converted-space gmail_msg"> </span></span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">!</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(0,102,102)" class="gmail_msg">12</span><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">)</span></div><div class="gmail_msg"><span style="margin:0px;padding:0px;border:0px;font-family:monospace;font-size:13px;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg"><br class="gmail_msg"></span></div><div class="gmail_msg">This was generated by <span style="font-size:13px;margin:0px;padding:0px;border:0px;font-family:monospace;background-color:rgb(250,250,250)" class="gmail_msg">verifyModule</span><span style="font-size:13px;margin:0px;padding:0px;border:0px;font-family:monospace;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">(*</span><span style="font-size:13px;margin:0px;padding:0px;border:0px;font-family:monospace;background-color:rgb(250,250,250);color:rgb(102,0,102)" class="gmail_msg">GPUModule</span><span style="font-size:13px;color:rgb(34,34,34);font-family:monospace;background-color:rgb(250,250,250)" class="gmail_msg"><span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,0)" class="gmail_msg">,&(</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)" class="gmail_msg">llvm</span><span style="margin:0px;padding:0px;border:0px;color:rgb(102,102,0)" class="gmail_msg">::</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)" class="gmail_msg">errs</span></span><span style="font-size:13px;margin:0px;padding:0px;border:0px;font-family:monospace;background-color:rgb(250,250,250);color:rgb(102,102,0)" class="gmail_msg">())</span>From whithin PPCGCodeGeneration.cpp in Polly.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">From <llvm_src>/test/Verifier/dbg-orphaned-compileunit.ll, I understand that the debug info, of a compile unit, represented by !11 is missing from <a href="http://llvm.dbg.cu" class="gmail_msg" target="_blank">llvm.dbg.cu</a>.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">What does this mean ? What could have caused this problem and how can I fix it ?</div></div></blockquote><div><br></div><div>At the LLVM level, it means that the CU debug info (DICompileUnit) wasn't listed in the list of all compile units (!<a href="http://llvm.dbg.cu">llvm.dbg.cu</a> global named metadata node) when it should be. Whatever produced the IR you are using likely has a bug and should be fixed to ensure the DICompileUnits created are included in the !<a href="http://llvm.dbg.cu">llvm.dbg.cu</a> global named metadata node (check Clang's behavior for comparison - usually a good reference point)<br><br>This invariant was added a while ago (in LLVM time - I think it was in the last year or maybe two) by Adrian.<br><br>- Dave</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thank You,</div><div class="gmail_msg">Sanjay</div></div>
_______________________________________________<br class="gmail_msg">
LLVM Developers mailing list<br class="gmail_msg">
<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="gmail_msg">
</blockquote></div></div>