[SYCL-MLIR] Use `VectorType` for different vector types
Open
enhancement
sycl-mlir
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
In https://github.com/intel/llvm/pull/7342, `ext_vector_type` is handled, but not the other vector types.
https://github.com/intel/llvm/pull/7342#pullrequestreview-1175435255:
(see [here](https://clang.llvm.org/docs/LanguageExtensions.html#vectors-and-extended-vectors)). The following should have the same output regardless of whether we use `ext_vector_type(4)` or `vector_size(4 * sizeof(int))`:
```cpp
using vec = int __attribute__((vector_size(4 * sizeof(int))));
vec id(vec a) { return a; }
```
Contributor guide
Assessment
This issue has not been assessed yet.