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

    <tr>
        <th>Summary</th>
        <td>
            [MLIR-tablegen] Add support to disable the generation of getter/setter functions for attribute of Op defined in .td files
        </td>
    </tr>

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

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

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

<pre>
    I defined some ops in td files and use TableGen to generate the defination of those Op Class. I do not want the getter/setter functions of some special attribute to apper in the OpClass define files (because I write my own getter/setter functions of those attribute and do some Customized Check there).

My solution to achive this goal is to add a new Attribute class, which named `HiddenAttr`. Any Op attribute defined in td file with `HiddenAttr` will not generate there getter/setter functions in the OpClass define file.

I have implement this solution in my local version, and I think it will be useful if the tablegen in mlir supported this feature.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U1tvmzAU_jXwclTEJZDkgYcsVbtIqyZN-wPGPoBXYyPbNMt-_Y6dpMk0tRICbJ_LdznujDi1BxDYS40CnJkQzOxAavACeqnQAdMCFofwk3UKn5FODAyo0TKP4Ec8ZzMvjQbT046h4O8z7BVzLgOqbkAbD0emfYwf0Hu0Sfnk4g_0i-Yh24X0CMHNyCVTwLy3sltCHwNsnik4IBtD_Vj-gvyCNCk3HXIWwB7gaCXlTScwR_15yzPiW69AmDBHJPvFeTPJPyTOfkT-GppbTMptluSPSb47v19OFK2WKEFAykf5FrSRDgZDPOgbtoUABhqPsHvvxQOLpNzDcZR8BM0m6pQ0-VcpBOoQR4sMdvoUJL1hvDp2MwqO0o__pdKuUlH-e8vsZyZ8rPA_nA8wMiIpp1nhhNFaovkuA1Uh7ZXhRP8NraO9QDNoewih-hWkP6PrMMxXv5BOfWztw6QR3lhESQtumWdjPfGNTXpkfrGYpdgWTdNU9WpdFKloK7Gttiz10itsk_rLy7fDj4drsaR-hB05cKkVDBHShcPLUEZ5LkP8sTq9sXc2UCjZcmdGdr026WJVO3o_u6TaUSF6BjJo6TJuJloo9Xb9PMzW_ELuaSmdW5Dm4ane1GWTjm1Xr3lTss22K7diveHFquCMl6siF5tmhdtUsQ6VC2yJYCrbMi_LIi-Loiw2VZHlBVszwesCRSVqXiWrHCcmVRYaZ8YOqW0jhm4ZHB0q6by7HdIAyEEjXuuzhS6LbZ9_SzLylEa4bcT6F5zQey4">