<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/112031>112031</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            HIP driver should not be invoking llvm-mc as the assembler
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:AMDGPU,
            clang:driver
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            yxsamliu,
            jhuber6
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          arsenm
      </td>
    </tr>
</table>

<pre>
    Clang is currently using llvm-mc as the assembler in the HIP driver: https://github.com/llvm/llvm-project/blob/2bb3d3a3f32ffaef3d9b6a27db7f1941f0cb1136/clang/lib/Driver/ToolChains/HIPUtility.cpp#L469

llvm-mc is for assembler tests, but isn't intended for use this way. Clang itself can be invoked as the assembler, which would avoid depending on an avoidable installed binary 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksGOmzAQhp_GXEYb4XEC4cAhTUR3pVbaQ_cBbDwE7xo78phs8_YVSbpbqVKlXkCM4B_-z59mdsdA1IrNF4F4-cl68m4WiAL3AvF1nA2lanneHAo95zGmViemMBUm2ku79zocwTH0c0oUsr_AzC4cwfvz9DD1oBnySKCZaTKeErhwHTw-PYNN7kxJqB2MOZ9YqJ3ATmB3dHmczaqPk8BuCbrfHk4pvlKfBXbGRyOwQ2OUVVoNCodB06BsYyqNtTX1IJu1HMreSKkqgV2__OkS5JYPD7fV2P2I0e9H7QIL7B6fnl-y8y5fVv3pJFB9W1eNKA-i3N2uv1s5hiGmP1pl4swC92DmDI6DwDqDC5mCJXt9d2aCPDqGd31ZwZ1bZvID9DqAIXDhHN_I_oVsiX0fXT_Ce5y9BX2OzoKlEwW7oI4BdLhNtfFLDmftPVkwLuh0gcK2yjaq0QW1ssZtVZdbuS3GtqpMI9cbtRnkoHuDRGQb0k2j1aZWSheuxRLXspRSbrGU9Wo9NEO1NWZr66FStBHrkibt_Gohs4rpWDjmmVopsVSy8NqQ57tdRvdvFKxQu933w9fnlw_LbkejdncfbrKl9grbzEcW69I7zvy5JLvsqf10CHi8ogkxf5D8l4XFnHz739Jdqy2e3NudW_wVAAD__xyBEYw">