<html>
    <head>
      <base href="https://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 --- - Convert inline asm to MCInsts (nuke the pre-MC AsmPrinter)" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23933&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=LkkxeBmbHBI0qXg9c5cBa68uKpI6O3ehGLvec5ZkLpg&s=jlHh0SPavsPThRSV5C9f98JMiHJVMHFKoezVaMtdixA&e=">23933</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Convert inline asm to MCInsts (nuke the pre-MC AsmPrinter)
          </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>MC
          </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, pete.cooper@gmail.com, rafael.espindola@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Quoting Rafael in
<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150622/283583.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150622/283583.html</a>
--
The way inline asm is implemented is

* We kept most of the old (pre-MC) assembly printer around.
* We use it to print/expand inline asm to a string.
* We parse that string.

So anything that can show up in inline asm needs a name by which we
can find it again.

I think the way to fix this is to directly transition from the inline
asm pattern "bsr $0,%eax" to a MCInst with an operand pointing to
whatever we created for $0. That will let us nuke the old printer and
save memory by not creating names just in case they are used in inline
asm.
--

Filing this so we don't forget the plan.  Once that's done, we should bring
r240130/r240302 back, dropping names from temp symbols.</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>