<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/154634>154634</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang format] [Tablegen] Formatting tablegen lacks whitespaces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
badumbatish
</td>
</tr>
</table>
<pre>
Commit 920079b7935352c28385c17bc8c36256bebcd279
This link https://github.com/llvm/llvm-project/pull/153252#discussion_r2275556144 details an instance where tablegen formatting through clang format follows the top version instead of the bottom.
```
def : Pat<(vec.vt(avgceilu(vec.vt V128:$lhs), (vec.vt V128:$rhs))), (inst $lhs,
$rhs)>;
```
```
def : Pat<(vec.vt (avgceilu (vec.vt V128:$lhs), (vec.vt V128:$rhs))),
(inst $lhs, $rhs)>;
```
Between `vec.vt` and `(avgceilu`, I would think the formatter would leave a whitespace
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUk02PmzwUhX-N2Vy9kbnGfCxYJJk3UnddjLqt_HEBdxwcYUPUf1-BmJmoHakdhITsY-znXp-jYnT9SNQyeWLyKVNzGsLUamXnq1bJxSHTwf5sz-F6dQka5LxqdNUIKSQarEUtTV5pUxtRoiw1aWOxaoDxI-PH58FF8G58gSGlW2TiyPDC8NK7NMz6YMKV4cX75fXz320KP8gkhpfb7D3DSy4FSmQorItmjtGF8fuEWEkpy7wowFJSzkdQI7gxJjUagvtAE0FS2lNPI3RhuqqU3NhDGqYw9wMYr8Z-F6AL3od7hDQQpHCDhab1mG0_UhZCt0k6pBSuh7Wwku8vP1rqgIkjfFWJiTPDeiFzWBLDWi29Iefntzn4lmO9taDwQ2TYMDzDR-q0q837mpUFXn88M36E93XifyZOv2H9GyU8YH5I8inOlert-YP578AnSneiEVjJ9yaWHNRo14nHfq6jM3yBe5i9hTSs9lovaL9nmnbFk1oIFNwHlyjelKHMtsI2olEZtXklZYVVXmI2tGVZ1JxXXSfyWnYKuc0brjSKwpbaCspcixwlr5FjLhvEgyoFNULlqqPCUF2xgtNVOX9YbXwIU5-5GGdqc1mUosi80uTjFjLEzX0Mcc3b1G6-13MfWcG9iym-b5Fc8lsyzw9-ZfIJmDw97_Zeh5cHh7-63ivzEh9qj9k8-fbTMdyqiFsQt0KWFn8FAAD__yv9RPM">