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

    <tr>
        <th>Summary</th>
        <td>
            [DirectX][DXIL] Enhance DXIL.td to be serve as the single source of reference for DXIL Operations
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    DXIL.td should be single source of reference for all DXIL operations.  It should be subsume all relevant and applicable functionalities of [`hctdb.py`](https://github.com/microsoft/DirectXShaderCompiler/blob/main/utils/hct/hctdb.py) and other `hct` utilities.

Currently the `DXILEmitter` backend generates code used for lowering LLVM IR intrinsics to DXIL Ops. Another utility of the `DXIL.td` could be in the [upgrade pass](https://github.com/llvm/llvm-project/blob/main/llvm/docs/DirectX/DXILArchitecture.rst#the-dxilupgrade-pass) with an appropriate backend (or even reusing `DXILEmitter` backend.

Some of the top-level sub-tasks are
1. Refine existing abstractions in DXIL to model DXIL operation characteristics such as instruction categories, types supported, parameter formats etc.
2. Currently only a small number (6) of DXIL operations are specified. The remaining ones, along with tests to verify DXIL lowering, need to added.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE2P2zgM_TXKhRjDVuJJcvBh2jTAAFks0C4Wc5Ul2lYrSwZFZ5p_v6A92WkLLIq9KB96FB8fH2ly9n1EbFT9QdWnjZl5SNS0gyHjXs3X26ZN7tacXp4vBTvIQ5qDgxYh-9gHhJxmsgipA8IOCaNF6BKBCQEkCNKEZNinmAuAZ_7xhbnN84gLlDDg1UQGEx2YaQremjYgdHO0EmyCZ49Z8gjRx3Kw7NpiuqnHUtUnpQ8D85TV9knps9Ln3vMwt4VNo9Ln0VtKOXWs9PnkCS2_fBmMQ_qYxskHJKXPbUitQI2PSp9n9iErfR4sr-eaSx8XfokHJFhJ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