intel / intel/llvm

[SYCL-MLIR] Use `VectorType` for different vector types

Open
#7,356 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.