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

    <tr>
        <th>Summary</th>
        <td>
            [mlir][TableGen] Add ability to mark builders etc. deprecated
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir
      </td>
    </tr>

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

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

<pre>
    It'd be nice to have some mechanism - maybe a `bit deprecated = 0;` in `AttrOrTypeBuilder` and `OpBuilder` that'd cause the tablegen code to emit a `[[deprecated]]` on the method in question, so that we can put up compiler warnings ahead of our intent to remove something
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkk2OozAQhU9jNqVExmASFiySiTKaVW_6AsaugKf9w9hFWunTj0widUtISK4qf_Xes8rZTgFxYPLM5KVSK80xDR_p65G_OK_GaB7DH2LiYGBECFYjUIRZ3RFy9Age9ayCzR524NVjRFDAOj5aAoNLQq0IDbDmApw1Z9ZxsKE0nIjSW3p_LHherTOYSkkFU2pvy48zmtUTr9WaEWhGIDU6nDCAjmZbB72lJ3eTcf4mM3kpX8chhm3WI83RlCX-rZjJxsDEL8hx48AnglYBlpVgXUBHv1iHCT5VCjZMGdSMykC8QVwT2EAYqPAT-vgyhGYbpsoMjembXlU41Ie2aw_y2PXVPKCsDw1vOcqu6454w1abhsvbsVW3XnNZ2UFwIbnkUvC65v1-7PseW60NikYfa2QtR6-s2zt39_uYpsrmvOJQN0d5aCqnRnR5S1MI72xiQpRc01D6d-M6ZdZyZzPl7xvIkttewDZQHDu_F4t_Y2DyAidjQI3WWXoUsV6lDxifAWVA0vsfSVdrcsNMtGTWnJi4MnGdLM3ruNfRM3EtzNdvt6T4FzUxcd0kZCauLxX3QfwPAAD__3s52CA">