Re: Use vec<> for constant permute masks

2017-09-14 Thread Richard Biener
On Thu, Sep 14, 2017 at 1:20 PM, Richard Sandiford wrote: > This patch makes can_vec_perm_p & co. take a vec<>, wrapped in new > typedefs vec_perm_indices and auto_vec_perm_indices. There are two > reasons for doing this for SVE: > > (1) it means that the number of elements is bundled with the el

Use vec<> for constant permute masks

2017-09-14 Thread Richard Sandiford
This patch makes can_vec_perm_p & co. take a vec<>, wrapped in new typedefs vec_perm_indices and auto_vec_perm_indices. There are two reasons for doing this for SVE: (1) it means that the number of elements is bundled with the elements themselves, and is obviously constant. (2) it makes it e