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

    <tr>
        <th>Summary</th>
        <td>
            [mlir][pdll] Unknown command line argument '-no-warn-on-unused-template-args'
        </td>
    </tr>

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

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

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

<pre>
    It seems that the `add_mlir_pdll_library` CMake macro delegates to the `tablegen` macro, which adds `-no-warn-on-unused-template-args` to invocations. I'm not sure how this is working upstream (is it?), but this breaks for me when including tests in a downstream. I was getting this just from running `ninja check-mlir` in a downstream.

I'm not sure it is the right fix, but I just added this to mlir-pdll.cpp's main in my local branch:

```
  // The tablegen main and CMake rules add this flag so we must accept it.
  llvm::cl::opt<bool> noWarnOnUnusedTemplateArg(
    "no-warn-on-unused-template-args",
    llvm::cl::desc("Disable unused template argument warnings."));
```

I expect this may be related to the FIXME on the previous line.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFU01vozAU_DVweQKBE0I5cEg_IuVQrbRqtXurjO2AG2MjfyTNv99nSNRVd6UKBBj8ZubNPDrDL-3egxNidOAH6vEiINkUlPO3UUn7NnGl3pTsLLUXfA8Pz_QoYKTMGuBCiZ56gaXmVuhphy-FjnvnXQl5gPMg2QCI6eKWTJvsTK3OjM6CDk7wzItxUoiUUdu7WIqAUp8Mo14a7XLYJ6QeQRvUGqyAwZyRUDrA82zsUeoewuS8FXSEhNzFLz5Z7RLSRP4u-GV7hxuODg7GwihQltBIw1TgEQAb8VingQI3Z72gITWcqYNeeD9vijDvwXk4WDOCDVrH16gZ7-8U2CDYMYvWxTa-giXFY1Jsl-uXlqSPzUQXrewHhJcfN-n7hRD9E3wRgPZEiiymk7NpQiiHdsvYDowXUOicwm6pZkOy2v5Ni7Ku57wEtAtt2sELMt_CW6Co5te4bVAYMvIv7AdFe3AGzjgIszDGxITyfX7DVOo0Rt7VlqnlbibM46EzBtdP2PUvHIAf-nWO_-Wa_tb2mN0NIyoj340KIWjSZ8W_vFw4FkEJeZQutgcLDtxwAHHCKLSHSIRZunxGbeK5uv-vadcAQXxMgl1Ha6QX6NAqEUH57Y_Y7X8_P4HR82Ky4iRNcKCkFnnK2xVvVg1NvfRKtEl1P49N9YhPMVh8gld91Dg-wMw4xjxi5adijP3bn4nUabCqHbyfXLRkTruXfghdjqi4mE1bbtlkzTu2hEvpXBBYvququtykQ1s1JR4N3TRkvT40ZV0VXbPm5V1ZFtWKVaminVAu9oHKU9mSgpCiIpuyKquK5DVZNaSs7xipGSUNSdaFwDlTeSTOje1T284auoCy14WS-Dt-fqTOyV6L2ScM6Kc8CVsXdcwK2Wjwg7Gt80IpanEgJUeD0rmJdu7gD6JPmVM">