<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Use tablegen to generate code for the debug info hierarchy"
href="http://llvm.org/bugs/show_bug.cgi?id=22781">22781</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Use tablegen to generate code for the debug info hierarchy
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Core LLVM classes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dexonsmith@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>aprantl@apple.com, dblaikie@gmail.com, echristo@gmail.com, friss@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>There's a much repeated code in the debug info hierarchy (from <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - Debug Info IR: Add specialized nodes for DIDescriptor hierarchy"
href="show_bug.cgi?id=22464">bug 22464</a>).
While it's fairly safe -- what wouldn't be caught a compile time is simple to
test -- it relies on somewhat opaque macros, and isn't as clean as a '.td' file
could be.
The prime candidates (in order of importance/ease/usefulness):
1. `MDNodeKeyImpl<>` specializations, in LLVMContextImpl.h.
2. The GET macros in {DebugInfo,}Metadata.h.
3. The `getImpl()` functions in {DebugInfo,}Metadata.{h,cpp}.
4. The `LLParser` routines?
5. The `AsmWriter` routines?
I'm not sure about generating the assembly handlers, and I'm fairly sure
tablegen'ing the bitcode handling is a bad idea (due to clarity about record
layout), but happy to be proven wrong!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>