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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Replace `getResourceName` usages with `enumToString`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

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

<pre>
    Base on the discussion here: https://github.com/llvm/llvm-project/pull/149232#discussion_r2237507164, we need to:
1) Add a new version of `enumToString` that returns `StringRef` instead of `std::string`.
2) Replace all usages of `getResourceName`  with such new function.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUUj1v3SAU_TV4QbXgYp7N4MFp9NQh6pB0r7B9bRPx4IkLeeq_r-y8NEO7dGI4Ood7PiyRWwNiz_QD04-VLXmLqX-NNpJdlmRDNcb5V_9gCXkMPG_IZ0dTIXIx8A0TMjXwLecrMTUwODM4ry5vZayneGFw9v7t4_lyTfEVp8zgfC3eMzjLxoACBupT82cCUK0WrTw1DL7yG_KAOPMcd30xSAaGD_PMLQ9442-YjkviwtlJYCiXH_ElJxdWdhI8bzbzhLmkQDv-jjzjsoMuUEY736mU5_0DNdAHu2ZigP23Z7x6OyG33vNCdkW6c1bMz0ixpAm_2wvuovzm8sapTNtx3lLClF0MdTX3ajbK2Ap72WrVSak1VFvfdcagkgtCu1hhx1bIcRw7bE0zT4uWletBgBYtGNlqUFAb06FqjDmN2OhWdawReLHO13vGdUxr5YgK9lJLEKLydkRPR8EA355enhjAXnXqj07GshJrhHeU6VMhu-yPURwE_fgng3-7vqdyeP-7hqok3__3RA4TtI_k3cdbD78DAAD__9V42f8">