<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 22, 2020 at 12:51 PM Allyn Shell <<a href="mailto:ashell2@jhu.edu">ashell2@jhu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks David,</div>
<div id="gmail-m_4712380558017165627appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_4712380558017165627divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>><br>
<b>Sent:</b> Thursday, May 21, 2020 5:54 PM<br>
<b>To:</b> Allyn Shell <<a href="mailto:ashell2@jhu.edu" target="_blank">ashell2@jhu.edu</a>><br>
<b>Cc:</b> via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
<b>Subject:</b> Re: [cfe-dev] Scan, Parse, IR Codegen, Debug</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif">
<span style="font-size:12pt;font-family:"Times New Roman",serif"><u></u> </span><span style="font-family:"Times New Roman",serif;font-size:12pt">Is the transition between AST and IR mapped in a way that is compatible with the mappings used for debug and the
 IR to Machine Specific Object Code? </span></p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I'm not sure I understand the question, could you rephrase it? Myself and Eric Christopher presented a tutorial at the LLVM developers meeting several years ago about how to generate LLVM IR that includes debug information that is then used by LLVM's middle
 (IR optimizations) and backend (Machine Specific Object Code generation) to create DWARF (or Windows CodeView) debug information, usable by a debugger like gdb, etc.</div>
<div><br>
</div>
<div><span>AMS: I appologize for not having a reference, but while I was reading all the LLVM documentation, I read that TableGen and the DWARD debug format had mappings that somebody recomended be made consistent with the target independent code generation
 so that there would only be one mapping for these things instead of different mappings at the different levels.</span></div></div></div></div></div></blockquote><div><br></div><div>Hmm - I'm honestly not sure what consistencies or inconsistencies that might've been in reference to... so I'm not sure what efforts there might be around this issue. If you happen to find any references/pointers I might be able to provide more information on that.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div dir="ltr"><div><div><span> I simply wanted to know if that effort toward uniformity was being advanced and if the AST to IR code generation was planned to be part of the uniformity.
 (And if not, should I consider trying to be compatible with some ongoing effort to create uniformity of mappings across phases of LLVM while I add front end features.)<br>
</span><span></span><br>
</div>
<div>Allyn Shell</div>
<div><br>
</div>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif">
<span style="font-family:"Times New Roman",serif;font-size:12pt">Where can I find that information?</span></p>
</div>
</div>
</blockquote>
<div>The written version of that tutorial is here: <a href="https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.html" target="_blank">https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.html</a> <br>
 </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
</div>
</div>
</div>

</blockquote></div></div>