<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62188>62188</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Support arm_sve_vector_bits/riscv_rvv_vector_bits attributes on vector types as a template parameter
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
backend:AArch64,
backend:RISC-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
topperc
</td>
</tr>
</table>
<pre>
This should be valid when Ty resolves to a SVE vector type.
```
template <typename Ty>
using Something = Ty __attribute__((arm_sve_vector_bits(__ARM_FEATURE_SVE_BITS)));
```
As requested in this review comment https://reviews.llvm.org/D145088#inline-1432341
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUk2PmzAQ_TXmMkoEYwhw4MBugrSHXjbpXi0bJsGtwdQ2rPLvK5Jou5UijcYfz9J7fm-k9_oyElUse2HZPpJz6K2rgp0mcm2kbHetTr324Hs7mw4UwSKN7uCzpxFOV3DkrVnIQ7Ag4fhxgIXaYB2E60RbFu9ZXD_6Ln7U7RhomIwMBIy_rm9HORCcrowf7vjs9XiBox0o9OuO8f3KJ4QMwWk1BxKCYcGwkG4QfiFxJxZKB8-wEKJ-_yGaQ336-X4Qx4-DeHk7HRmWj-IvT2Xde-3B0Z-ZfKAO9AhhtcDRoukTWjsMNAboQ5g84zXDhmFzB_3WmGXYWndh2OyTNIuLgiHXo9EjbZKUI0-TqKt4V_JSRlQluyLJs5LHRdRXOaYZJjzvknMSl3kpzzIpcomlUmfFC4p0hTHyOE3ypMQkLbZZ2mJ8zpTq2vi8y3csjWmQ2nzJiLT3M1U7TIoiMlKR8beoEVsjxwtDZPjKEJVsf9PYMV7XtWv7XfoEeX87vm4-ViDbR65aKTZqvniWxkb78O_vUdDBUHWcp8m6AE_zaZz27SLcsny_h69wPdjx-yh5kB4kfE3NJJ0cKJCLZmeq_7O46NDPatvagWGzinosm8nZX9QGhs3NllXGzZm_AQAA___PEPba">