<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 --- - Debug info IR: DebugMDNode"
   href="http://llvm.org/bugs/show_bug.cgi?id=22235">22235</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Debug info IR: DebugMDNode
          </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>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Introduce a new IR node specialized for DWARF tags with similar assembly syntax
to MDLocation (<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Debug info IR: MDLocation"
   href="show_bug.cgi?id=21433">bug 21433</a>).

The construct needs to be generic enough to handle any DW_TAG we currently
stuff into MDNode, and is meant to serve as a base class for specific DW_TAG
classes going forward.

My naming plan is to call the base class (which inherits from
`UniquableMDNode`) `DebugMDNode`, and the leaf class `GenericDebugMDNode`.

This is step 4 of the original plan from the RFC [1]: pull the DW_TAG out of
the header field to put in the `tag` field, and leave it otherwise similar to
an MDNode.

!7 = !GenericDebugMDNode(tag: DW_TAG_compile_unit, fields: "0\00clang
3.6\00...", operands: { !8, !9, ... })

[1]: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-October/077715.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-October/077715.html</a></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>